Home | Previous Page | Next Page   Function Descriptions >

mi_binary_to_date( )

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
is 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.

Global Language Support

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.

End of Global Language Support
Important:
The mi_binary_to_date( ) function is supported only for backward compatibility with 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
is a pointer to the date string that mi_binary_to_date( ) has created.
NULL
indicates that the function was not successful.

Related Topics

See also the descriptions of mi_date_to_binary( ) and mi_date_to_string( ).

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