createDateTime

Creates a date-time object.

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

Argument Reference for the createDateTime function

year

Required: Yes
Values:
  • year(now())

month

Required: Yes
Values:
  • month(now())

day

Required: Yes
Values:
  • day(now())

hour

Required: Yes
Values:
  • hour(now())

minute

Required: Yes
Values:
  • minute(now())

second

Required: Yes
Values:
  • second(now())

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