Sending dates and times to the database

The date and time of day can be sent to the database in one of the following ways:

  • using any interface, as a string

  • using ODBC or OLE DB, as a binary value (using an ODBC TIMESTAMP_STRUCT structure for example)

  • using embedded SQL, as a SQLDATETIME structure

The date and time of day with a time zone offset can be sent to the database as a string only.

 Date formats
 Time formats
 Date with time formats
 Time zone formats
 See also