DataBlade API functions for date conversion

The DataBlade API provides functions for conversion between text and binary representations of date data.

Table 1. DataBlade API functions for date conversion
DataBlade API function Convert from Convert to
mi_date_to_string() DATE (mi_date) Date string
mi_string_to_date() Date string DATE (mi_date)
Server only: The mi_date_to_string() and mi_string_to_date() functions are useful in the input and output support functions of an opaque data type that contains mi_date values. They allow you to convert DATE values between their external format (text) and their internal (binary) format when transferred to and from client applications.

The mi_date_to_string() and mi_string_to_date() functions use the current processing locale to handle locale-specific formats in the date string. For more information, see the IBM Informix GLS User's Guide.


Copyright© 2018 HCL Technologies Limited