GetNumericDate()
Returns a real number whose integer part represents the number of days since the Lucee Server's Epoch (default: December 30, 1899) and whose fractional part represents the time value expressed in hours then divided by 24
GetNumericDate( arg1=any );
Returns: Number
| Argument | Description |
|---|---|
|
arg1
any,
required
|
edit
A datetime object or a date-parsable String. |
Examples
edit dd=now();
dump(getNumericDate('11/10/1992'));
dump(getNumericDate(dd));
See also
- Date and time
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)