Previous Topic: Arithmetic FunctionsNext Topic: Date-Time Stamp Functions


Date Functions

Date built-in functions perform date processing in eight formats:

Function

Keyword

What it does

Date change

DATECHG

Returns Gregorian, calendar, European, or Julian date conversions

Date difference

DATEDIF

Returns the number of days between two specified dates

Date offset

DATEOFF

Returns the date resulting from adding a specified number of days to a date

Good date

GOODDATE

Returns TRUE or FALSE to indicate whether a date is valid for the date type

Today's date

TODAY

Returns today's date in the specified format

Tomorrow's date

TOMORROW

Returns tomorrow's date in the specified format

Weekday

WEEKDAY

Returns the weekday of a specified date

Yesterday's date

YESTERDAY

Returns yesterday's date in the specified format