Date/Time Functions

addtime adds a period of time to a date

mer_day day of month

day_of_week name for day of the week

dow day of week

diffdate returns the difference between two dates

firstday converts a date to the first day of the month with the time set to zero

mer_hour hour

julian day of year

lastday converts a date to the first day of the next month with the time set to 23:59:59:9999

makedate create a date/time value from integer values;

maxtime set the time of a date to 23:59:59.9999

mer_minute minute

mer_month month

month_of_year name of the month

msec milliseconds

quarter returns the quarter based upon a date (96Q1)

sec seconds

subtime subtract a period of time from a date

mer_year year

week returns a number representing the week which date falls in

zerotime sets the time portion of a date variable to zero