Date & Time Functions

 

Date and time functions allow you to alter the display and use of cells with date and/or time values.

 

DATE

Returns a United States style date for the given day, month, and year.

 

DATETOTEXT

Converts any date value into a specific text format.

 

DAY

Returns just the day (1..31) of the month for the specified date.

 

DAYNAME

Returns the name of the given day of the week.

 

DAYOFYEAR

Returns the day (1..366) of the year for given a date.

 

HOUR

Returns the hour (0-23) of the day for a given time.

 

LOCALTIME

Returns the local time. If no time is specified, the current time is used. If no timezone offset is specified, the offset of current zone is used.

 

MINUTE

Returns the minute (0-59) for a given time.

 

MONTH

Returns the month (1-12) for the given date.

 

MONTHNAME

Returns the month (1-12) for the given date.

 

NOW

Returns the immediate GMT time. See also LOCALTIME

 

SECOND

Returns the seconds (0-59) for a given time.

 

TIME

Returns a text string for a given time.

 

TIMETOTEXT

Converts any time value into a specific text format.

 

TIMEZONE

Returns the difference in hours from UTC time.

 

WEEKDAY

Returns a day of the week value given a specific date. Returns a numeric value (0-6) where Sunday is 0 and Saturday is 6.

 

WEEKOFYEAR

Returns a week of a year value given a specific date. Returns a numeric value (0-53) where the first week of a year is 1, the second is 2, and so forth.

 

YEAR

Returns the year for a given date.