The DATE function uses include:
- It can be used to combine date elements from different locations.
- It can be used to convert dates to the computer's serial date.
- It can be used to ensure that dates used in calculations are entered correctly into a cell - to ensure they are treated as a date or a number instead of text.
The syntax for the DATE function is:
= DATE( Year, Month, Day)
Year - enter the year as a four digit number or the cell reference where it is located.
Month - enter the year as a two digit number or the cell reference where it is located.
Day - enter the day as a two digit number or the cell reference where it is located.
Example Using Excel's DATE Function:
Note: To get the DATE function to return the computer's serial date, format the cell E1 as Number before entering the function.
- For help with this example, see the image above.
- Enter the following data into cells D1 to D3: 2008 , 2 , 24.
- Click on cell E1 - the location where the results will be displayed.
- Click on the Formulas tab.
- Choose Date & Time from the ribbon to open the function drop down list.
- Click on DATE in the list to bring up the function's dialog box.
- Click on the "Year" line in the dialog box.
- Click on cell D1 to enter the cell reference into the dialog box.
- Click on the "Month" line in the dialog box.
- Click on cell D2 to enter the cell reference.
- Click on the "Day" line in the dialog box.
- Click on cell D3 to enter the cell reference.
- Click OK.
- The current date should appear in cell E1 in the format 2/24/2008.
- When you click on cell E1 the complete function = DATE( Year, Month, Day) appears in the formula bar above the worksheet.


