Datevalue, 47 datevalue 47 day – Apple iWork '09 User Manual
Page 47
Chapter 3
Date and Time Functions
47
DATEVALUE
The DATEVALUE function converts a date text string and returns a date/time value. This
function is provided for compatibility with other spreadsheet programs.
DATEVALUE(date-text)
Â
date-text: The date string to be converted. date-text is a string value. It must be a
date specified within quotations or a date/time value. If date-text is not a valid date,
an error is returned.
Examples
If cell B1 contains the date/time value August 2, 1979 06:30:00 and cell C1 contains the string
10/16/2008:
=DATEVALUE(B1) returns Aug 2, 1979, and is treated as a date value if referenced in other formulas.
The value returned is formatted according to the current cell format. A cell formatted as Automatic
uses the date format specified in System Preferences (search for “date format” in the System
Preferences window).
=DATEVALUE(C1) returns Oct 16, 2008.
=DATEVALUE(“12/29/1974”) returns Dec 29, 1979.
Related Topics
For related functions and additional information, see:
“Listing of Date and Time Functions” on page 42
“Value Types” on page 36
“The Elements of Formulas” on page 15
“Using the Keyboard and Mouse to Create and Edit Formulas” on page 26
“Pasting from Examples in Help” on page 41
DAY
The DAY function returns the day of the month for a given date/time value.
DAY(date)
Â
date: The date the function should use. date is a date/time value. The time portion
is ignored by this function.