Syntax
=DATEVALUE(date_text)Arguments
| Argument | Required | Description |
|---|---|---|
date_text | Required | Text with a date, like "8/22/2011" or "22-May-2011" |
How to use DATEVALUE
DATEVALUE takes 1 required argument. Type =DATEVALUE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=DATEVALUE("8/22/2011")Result =DATEVALUE("22-MAY-2011")Result =DATEVALUE("2011/02/23")Result Related date and time functions
- DATEBuilds a date from a year, a month and a day; months and days past the end roll over.
- DATEDIFCounts the whole days, months or years between two dates.
- DAYReturns the day of the month (1 to 31) of a date.
- DAYSReturns the number of days between two dates.
- DAYS360Returns the days between two dates on a calendar of twelve 30 day months.
- EDATEReturns the date a number of months before or after a date, on the same day of the month where possible.
- EOMONTHReturns the last day of the month a number of months before or after a date.
- HOURReturns the hour (0 to 23) of a time.
- ISOWEEKNUMReturns the ISO week number of the year (weeks start on Monday, week 1 contains the first Thursday).