Table 125. Date Scalar Functions
Returns date of the last day of the month containing date d. | |
Returns the number of months between dates d1 and d2 as a real number (fractional value). | |
Returns the date of the first weekday s after date d. If s is omitted, add one day to d. | |
Returns the current system date and time for each record in item c. | |
Converts the date or number d/n into a string in the specified format. This function does not change the data, but rather the item data type. The results cannot be computed mathematically. ToChar ('05/08/06', "mmmm-yy" ) = May-06 If you are referencing a Date or Number column for the first argument (Date field), single quotes are not required. If you are passing a data value, single quotes are required. A comma must immediately follow the first argument. In the second argument (Format field), single quotes or double quotes must enclose values. | |
Returns date type in place of date-string s. This function does not change the data, but rather the item data type. The results can be computed mathematically. ToDate ('10/12/96') = 10/12/96 Note: See Functions for Returning the Day of the Week for information on how to return the day of the week on which a given date falls. | |
Returns the referenced date and replaces the day and year part of the date with 15 and 1904 respectively. You can change the value to display as a month string by adding and applying a mmm date format or a month number by applying the date format of mm. | |
Returns the integer year for each value of d. You can convert the year to display without commas by applying the 0 numeric format. |