createODBCDateTime

Creates an ODBC date-time object.

createODBCDateTime(date) → returns date

Member Function Syntax

date.createODBCDateTime()

createODBCDateTime Argument Reference

date date
Required

Date or date/time object or string.

Compatibility

ColdFusion:

Member function is available in CF11+.

Lucee:

Member function is not available.

Examples sample code invoking the createODBCDateTime function

Uses the CreateODBCDateTime function to create an ODBC date-time object

<cfset Date = createDateTime(2012, 12, 12, 12, 12, 12)>
<cfset result = createODBCDateTime(Date)>
<cfoutput>#result#</cfoutput>

Expected Result: {ts '2012-12-12 12:12:12'}


Fork me on GitHub