createDateTime
Creates a date-time object.
createDateTime(year, month, day, hour, minute, second) → returns date
Argument Reference
year numeric Required
day numeric Required
Default: 1
1
Day of the month.
hour numeric Required
Default: 0
0
Hour of the day in 24-hour notation (0-23).
minute numeric Required
Default: 0
0
Minute within the hour.
second numeric Required
Default: 0
0
Second within the minute.
millisecond numeric
Default: 0
0
CF 2021+ or Lucee 4.5+ Only
timezone numeric
Lucee 4.5+
Compatibility
Examples Sample code invoking the createDateTime function
<cfset yourDate = createDateTime("2015", "12", "09", "6", "20", "34")>
<cfdump var="#yourDate#" />
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/createdatetime