![]() |
Leading the way in Microsoft Office Development |
| Home | | | Excel | | | Word | | | PowerPoint | | | Consultancy | | | Feedback | | | Contact |
| Microsoft Excel > Functions > Date and Time > DATE |
DATE(year, month, day) |
| Returns the date as a serial number given the year, month and day. |
| year | The year component, between 0 and 9999. | |
| month | The month component, between 1 and 12. | |
| day | The day component between 1 and 31. |
| REMARKS |
| If "year" >= 0 and "year" <= 1899 then "year" is added to 1900 to calculate the year. | ||
| If "year" >= 1900 and "year <= 9999 then that value is used as the year. | ||
| If "year" < 0, then #NUM! is returned. | ||
| If "year" > 10000, then #NUM! is returned. | ||
| If "month" > 12, then "month" is added to the first month in the given "year". | ||
| If "month" < 0, then #NUM! is returned. | ||
| If "day" > the number of days in "month", then "day" is added to the first day in the given "month". | ||
| If "day" < 0, then #NUM! is returned. | ||
| If the cell contains the General number format, then the format is automatically changed to "dd/mm/yyyy". | ||
| You can use the TEXT() function to convert a date serial number into a particular date format. |
| EXAMPLES |
|
| Functions - D | Index - D | Dates & Times | Office Online |
| Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved. | Top |