getNumericDate

Returns a real number whose integer part represents the number of days since the EPOCH and whose fractional part represents the time value expressed in hours then divided by 24. NOTE: Lucee (and ACF) uses 12/30/1899 00:00:00 as it's epoch time. See links below.

getNumericDate(arg1) → returns numeric

Argument Reference

arg1 any
Required

A datetime object or a date-parsable String.

Links more information about getNumericDate

Examples
Sample code invoking the getNumericDate function

This numeric date represents the number of days between December 30, 1899 and January 1, 2008.

getNumericDate('2018-01-01')

Expected Result: 43101

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub