Date and time datatypes

SDK (except for DB-Library™) and Open Server now support two 4-byte binary datatypes, date and time, which are new, fixed-width, 4-byte server datatypes. The names for the new Client-Library and Server-Library shared C programming datatypes are CS_DATE and CS_TIME, which correspond to the Adaptive Server® date and time datatypes, respectively. These new datatypes behave like their counterparts, CS_DATETIME and CS_DATETIME4, but they store data in only date or time, which are 4-byte, fixed-width binaries.All Open Client and Open Server operations on CS_DATETIME and CS_DATETIME4 datatypes are implemented for CS_DATE and CS_TIME datatypes and behave in a similar manner. As a result, syntactically, CS_DATE and CS_TIME can be used anywhere that CS_DATETIME and CS_DATETIME4 are used, for example: cs_convert, ct_bind, ct_param, ct_dt_crack, ct_dt_info, and others. For the definition and use of these new datatypes, refer to: