FORMULA LANGUAGE
A time-date value consists of a year, month, day, hour, minute, and second. You can use a time-date value "as is" in a time-date field, but must convert it with @Text to use it as a string. You can convert a string to a time-date value with @TextToTime.
A time-date constant is a date, a time, or both, in brackets. The date is the month, day, and year separated by a slash (/) or a hyphen (-) for OS/2. Year is optional and defaults to the current year; a 2-digit year means the 20th century if 50 or greater, and the 21st century if less than 50.
The time is the hour, minute, and second (optional; defaults to 0) separated by colons. You can use 24-hour time or add "PM" for afternoon hours. You can add the time zone to indicate another time zone. Separate the components with spaces. Some examples of time-date constants are [6/30/97], [5:30:00 PM], [17:30:00], [17:30 EST], and [6/30 5:30 PM].
Dates can be compared and subtracted. Subtraction yields a numeric value representing seconds. To measure the difference between two dates in days, divide the result by 86,400, which is the number of seconds in a day. For example, if you have two date fields, date1 containing [07/01/01] and date2 containing [07/05/01], the following returns 345,600:
The following @functions determine and manipulate time-date values.