You can directly enter a date, time, or date and time, using standard U.S. date formats. ColdFusion processes the two-digit-year values 0 to 29 as twenty-first century dates; it processes the two-digit-year values 30 to 99 as twentieth century dates. Time values can include units down to seconds. The following table lists valid date and time formats:
To specify |
Use these formats |
---|---|
Date |
October 30, 2003 Oct 30, 2003 Oct. 30, 2003 10/30/03 2003-10-30 10-30-2003 |
Time |
02:34:12 2:34a 2:34am 02:34am 2am |
Date and Time |
Any combination of valid date and time formats, such as these: October 30, 2003 02:34:12 Oct 30, 2003 2:34a Oct. 30, 2001 2:34am 10/30/03 02:34am 2003-10-30 2am 10-30-2003 2am |