Datetime types

Open Server supports two datetime types, CS_DATETIME and CS_DATETIME4. These datatypes are intended to hold 8-byte and 4-byte datetime values, respectively.

In addition, Open Server supports CS_DATE and CS_TIME datatypes. These datatypes behave like CS_DATETIME and CS_DATETIME4, but rather than store data in a single datetime value, they store data in separate 4-byte fixed-width date or time values.

An Open Server application can use the CS-Library routine cs_dt_crack to extract date parts (year, month, day, and so on) from a datetime structure.