createODBCTime

Creates an ODBC time object.

createODBCTime(date) → returns ODBCTime

Member Function Syntax

date.createODBCTime()

createODBCTime Argument Reference

date
Required

Date or date/time object.

Compatibility

ColdFusion:

Member function is available in CF 11+.

Lucee:

Member function is not available.

Examples sample code invoking the createODBCTime function


Creates an ODBC time object

Uses the CreateODBCTime function to create an ODBC time object

<cfset time = CreateDateTime(2012, 12, 12, 12, 12, 12)>
<cfset result = CreateODBCTime(time)>
<cfoutput>#result#</cfoutput>

Expected Result: {t '12:12:12'}


Fork me on GitHub