createDate

Creates a date/time object

createDate(year, month, day) → returns date

createDate Argument Reference

year numeric
Required

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
Required

Numeric month of the year (1-12)

day numeric
Required

Day of the month

Examples sample code invoking the createDate function

<cfscript>
	yourDate = createDate("2015","12","09");
	writeOutput(yourDate);
</cfscript>

Expected Result: {ts '2015-12-09 00:00:00'}


Fork me on GitHub