createODBCDate

Creates an ODBC date object.

createODBCDate(date) → returns ODBCDate

Member Function Syntax

date.createODBCDate()

Argument Reference for the createODBCDate 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 createODBCDate function


Creates an ODBC date object

Uses the createODBCDate function to create an ODBC date object

<cfset Date = createDate(2012, 12, 12)>
<cfset result = CreateODBCDate(Date)>
<cfoutput>#result#</cfoutput>

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


Fork me on GitHub