createODBCDateTime

Creates an ODBC date-time object.

createODBCDateTime(date) → returns ODBCDateTime

Member Function Syntax

date.createODBCDateTime()

Argument Reference for the createODBCDateTime function

date

Required: Yes
Date or date/time object. Values:
  • now()

Compatibility

ColdFusion:

Member function is available in CF 11+.

Lucee:

Member function is not available.

Examples sample code invoking the createODBCDateTime function


Creates an ODBC date-time object

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