Using Dates

Date functions are provided to calculate the difference between two dates, convert a date to and from the number of Julian days, and convert a date to and from its integer components (day, month, year). A function is also provided to determine if any given year is a leap year.

All date functions take as an argument a date format string, which specifies the order of the days, month and year in the date, the date separators, and whether the month is to be a string or a numeral. By using a date format string, you can use dates in any number of formats from U.S. style (month/day/year), European style (day/month/year), just the month and year, or just the month and day, among others.

More:

Specifying a Date Format

Specifying the System Date Format

Getting the Current Date from the System

Comparing Two Dates

Converting Dates From and To Their Integer Components

Converting Dates From and To Julian Days

Determining a Leap Year


Home Contents Previous Next