createODBCDate

Creates an ODBC date object.

createODBCDate(date) → returns date

Member Function Syntax

date.createODBCDate()

createODBCDate Argument Reference

date date
Required

Date or date/time object.

Compatibility

ColdFusion:

Member function is available in CF11+.

Lucee:

Member function is not available.

Examples sample code invoking the createODBCDate function

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