Home | Previous Page | Next Page   Data Manipulation > Using Date and Time Data Types > Date Data >

Transfers of Date Data (Server)

For date data to be portable when transferred across different computer architectures, the DataBlade API provides the following functions to handle type alignment and byte order.

DataBlade API Function Description
mi_get_date( ) Copies an aligned mi_date value, converting any difference in alignment or byte order on the client computer to that of the server computer
mi_put_date( ) Copies an aligned mi_date value, converting any difference in alignment or byte order on the server computer to that of the client computer

The mi_get_date( ) and mi_put_date( ) functions are useful in the send and receive support function of an opaque data type that contains mi_date values. They enable you to ensure that DATE values remain aligned when transferred to and from client applications, which possibly have unaligned data buffers. For more information, see Conversion of Opaque-Type Data with Computer-Specific Data Types.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]