CreateDateTime() - create a date time object
CreateDateTime.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CreateDateTime function example: how to create a date time object</title>
</head>
<body>
<h2 style="color:hotpink">CreateDateTime Function Example</h2>
<cfset Year="2008">
<cfset Month="12">
<cfset Day="5">
<cfset Hour="6">
<cfset Minute="30">
<cfset Second="29">
<cfset CreatedDateTime=CreateDateTime(Year,Month,Day,Hour,Minute,Second)>
<cfoutput>
<b>
Year: #Year#
<br />
Month: #Month#
<br />
Day: #Day#
<br />
Hour: #Hour#
<br />
Minute: #Minute#
<br />
Second: #Second#
<br /><br />
Created DateTime: #CreatedDateTime#
</b>
</cfoutput>
</body>
</html>
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt27eqI0SvDog33iaPyqc19YArgqqysjeZB_uow84lqWSFr6pbx9hFgiWCu7-LsWg6rcOqcftDghvTRbENF9Av5J8nLLXqzdwAietsikknTe1b8LYI-pyOa_PHih4jzYjTzZXK0vzrQpY/s1600/CreateDateTime.gif)
- CreateDate() - create a date object
- CreateODBCDateTime() - create an ODBC date time object
- DayOfYear() - get the day of the year in a Date
- DaysInMonth() - get the number of days in a month
- GetTickCount() - get the system time in milliseconds
- GetTimeZoneInfo() - get local time zone information from caller computer