0% found this document useful (0 votes)
3 views2 pages

DateTime Functions

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
Download as xlsx, pdf, or txt
0% found this document useful (0 votes)
3 views2 pages

DateTime Functions

Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1/ 2

Date and Time functions

Function
DATE(<year>, <month>, <day>)
DATEVALUE(date_text)
DAY(<date>)

EDATE(<start_date>, <months>)

EOMONTH(<start_date>, <months>)

HOUR(<datetime>)
MINUTE(<datetime>)
MONTH(<datetime>)
NOW()
SECOND(<time>)
TIME(hour, minute, second)
TIMEVALUE(time_text)
TODAY()

WEEKDAY(<date>, <return_type>)

WEEKNUM(<date>, <return_type>)

YEAR(<date>)

YEARFRAC(<start_date>, <end_date>, <basis>)


Description
Returns the specified date in datetime format.
Converts a date in the form of text to a date in datetime format
Returns the day of the month, a number from 1 to 31.
Returns the date that is the indicated number of months before or after the start date. Use EDATE to calculate maturit
dates that fall on the same day of the month as the date of issue
Returns the date in datetime format of the last day of the month, before or after a specified number of months. Use EO
calculate maturity dates or due dates that fall on the last day of the month.
Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).
Returns the minute as a number from 0 to 59, given a date and time value.
Returns the month as a number from 1 (January) to 12 (December).
Returns the current date and time in datetime format.
Returns the seconds of a time value, as a number from 0 to 59
Converts hours, minutes, and seconds given as numbers to a time in datetime format.
Converts a time in text format to a time in datetime format.
Returns the current date.
Returns a number from 1 to 7 identifying the day of the week of a date. By default the day ranges from 1 (Sunday) to

Returns the week number for the given date and year according to the specified convention. The week number indicat
week falls numerically within a year.
Returns the year of a date as a four digit integer in the range 1900-9999.
Calculates the fraction of the year represented by the number of whole days between two dates. Use the YEARFRAC
function to identify the proportion of a whole year's benefits or obligations to assign to a specific term.

You might also like