Date and Time Functions Flashcards

1
Q

YEARFRAC(start_date, end_date, basis)

A

Calculates the fraction of the year represented by the number of whole days between two dates. Use the YEARFRAC worksheet function to identify the proportion of a whole year’s benefits or obligations to assign to a specific term.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DATEVALUE(date_text)

A

Converts a date in text format to a date in datetime format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

TIMEVALUE(time_text)

A

Converts a time in text format to a time in datetime format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

TIME(hour, minute, second)

A

Converts hours, minutes, and seconds given as numbers to a time in datetime format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

WEEKDAY(date, return_type)

A

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 7 (Saturday).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CALENDARAUTO([fiscal_year_end_month])

A

Returns a table with a single column named “Date” that contains a contiguous set of dates. The range of dates is calculated automatically based on data in the model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CALENDAR(start_date, end_date)

A

Returns a table with a single column named “Date” that contains a contiguous set of dates. The range of dates is from the specified start date to the specified end date, inclusive of those two dates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

NOW()

A

Returns the current date and time in datetime format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

TODAY()

A

Returns the current date.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

UTCNOW()

A

Returns the current UTC date and time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

UTCTODAY()

A

Returns the current UTC date.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

EOMONTH(start_date, months)

A

Returns the date in datetime format of the last day of the month, before or after a specified number of months. Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

EDATE(start_date, months)

A

Returns the date that is the indicated number of months before or after the start date. Use EDATE to calculate maturity dates or due dates that fall on the same day of the month as the date of issue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

DAY(date)

A

Returns the day of the month, a number from 1 to 31.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

HOUR(datetime)

A

Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

MINUTE(datetime)

A

Returns the minute as a number from 0 to 59, given a date and time value.

17
Q

MONTH(datetime)

A

Returns the month as a number from 1 (January) to 12 (December).

18
Q

DATEDIFF(Date1, Date2, Interval)

A

Returns the number of interval boundaries between two dates.

19
Q

NETWORKDAYS(start_date, end_date[, weekend, holidays])

A

Returns the number of whole workdays between two dates (inclusive). Parameters specify which and how many days are weekend days. Weekend days and days specified as holidays are not considered as workdays.

20
Q

QUARTER(date)

A

Returns the quarter as a number from 1 (January – March) to 4 (October – December).

21
Q

SECOND(time)

A

Returns the seconds of a time value, as a number from 0 to 59.

22
Q

DATE(year, month, day)

A

Returns the specified date in datetime format.

23
Q

WEEKNUM(date[, return_type])

A

Returns the week number for the given date according to the return_type value. The week number indicates where the week falls numerically within a year.

24
Q

YEAR(date)

A

Returns the year of a date as a four digit integer in the range 1900-9999.