The mi_binary_to_date() function
The mi_binary_to_date() function creates a text (string) representation of a date from the internal (binary) DATE representation.
Syntax
mi_lvarchar *mi_binary_to_date(date_data)
mi_date date_data;
- date_data
- The internal DATE representation of the date.
Valid in client LIBMI application? | Valid in user-defined routine? |
---|---|
Yes | Yes |
Usage
The mi_binary_to_date() function converts the internal DATE value that date_data contains into a date string. It returns a pointer to the buffer that contains the resulting date string.
The mi_binary_to_date() function formats the date string in the date format of the current processing locale. It also performs any code-set conversion necessary between the current processing locale and the target locale.
Important: The mi_binary_to_date() function
is supported only for compatibility with earlier versions of existing DataBlade®
API modules.
The DataBlade
API will
eventually discontinue support for this function. Use the mi_date_to_string() function
in any new DataBlade
API modules.
Return values
- An mi_lvarchar pointer
- A pointer to the date string that mi_binary_to_date() has created.
- NULL
- The function was not successful.