createODBCTime

Creates an ODBC time object.

createODBCTime(date) → returns date

Member Function Syntax

date.createODBCTime()

createODBCTime 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 createODBCTime function

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