informix
Informix DataBlade API Programmer's Manual
DataBlade API Function Descriptions

mi_date_to_string()

The mi_date_to_string() function creates a text (string) representation of a date value from the binary (internal) DATE representation.

Syntax

Usage

The mi_date_to_string() function converts the internal DATE value that date_data contains into a date string. An internal DATE value is the format that the database server uses to store a value in a DATE column of the database.

Important: The mi_date_to_string() function replaces the mi_binary_to_date() function for converting an internal DATE value to a date string in DataBlade API modules.

The mi_date_to_string() function formats the date string in the date format of the current processing locale. For more information, see the Informix Guide to GLS Functionality.

Return Values

mi_string * is a pointer to the date string equivalent of the date_data.
NULL indicates that the function was not successful.

Related Topics

See the descriptions of the following functions: mi_datetime_to_string(), mi_decimal_to_string(), mi_interval_to_string(), mi_money_to_string(), and mi_string_to_date().

For more information on how to convert internal DATE format to date strings, see Converting Date Between Text and Binary.


Informix DataBlade API Programmer's Manual, Version 9.2
Copyright © 1999, Informix Software, Inc. All rights reserved