Creates a date/time object
createDate(year, month, day)
returns date
Name | Type | Required | Default | Description |
---|---|---|---|---|
year | numeric | Yes | Integer in the range 0-9999. When in the range 0-29, year is converted to 2000-2029. When in the range 30-99, year is converted to 1930-1999. You cannot specify dates before AD 100. | |
month | numeric | Yes | Numeric month of the year (1-12) | |
day | numeric | Yes | Day of the month |
<cfscript>
yourDate = createDate("2015","12","09");
writeOutput(yourDate);
</cfscript>