createDateTime

Creates a date-time object.

createDateTime(year, month, day, hour, minute, second) → returns date

createDateTime Argument Reference

year numeric
Required

month numeric
Required

Numeric month of the year (1-12)

day numeric
Required

Day of the month

hour numeric
Required

Hour of the day in 24-hour notation (0-23)

minute numeric
Required

second numeric
Required

Examples sample code invoking the createDateTime function


Tag Syntax

<cfset yourDate = createDateTime("2015", "12", "09", "6", "20", "34")> 
 <cfdump var="#yourDate#" />     

Fork me on GitHub