CreateODBCDateTime

Creates a DateTime object with the format set to ODBC Implicit format

Method Signature

CreateODBCDateTime(date=[any], timezone=[string])

Arguments

Argument
Type
Required
Description
Default

date

any

true

The date string or object

timezone

string

false

An optional timezone to apply

Examples

Creates an ODBC time object

Uses the CreateODBCTime function to create an ODBC time object

<bx:set time = createDateTime( 2012, 12, 12, 12, 12, 12 ) >
<bx:set result = createODBCTime( time ) >
<bx:output>#result#</bx:output>

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

Additional Examples

Run Example

dump( CreateODBCTime( now() ) );

Last updated

Was this helpful?