InternationalDate
int InternationalDate (char date[], size_t stringBufferSize);
Purpose
Returns a string representation of the current date in a format appropriate to internationalization settings of the computer.
![]() |
Note This function depends on the operating system and C Library support for international date formats. On some systems, the date returned may not be in correct format for the location. |
This function is not safe for use in a multi–threaded program because it temporarily changes the current locale in the ANSI C time library.
Parameters
Input | ||
Name | Type | Description |
stringBufferSize | size_t | Pass the size (including space for the terminating null byte) of the string buffer that the formatted date is to be stored in. |
Output | ||
Name | Type | Description |
date | char [] | Pass a string buffer in which to store the formatted date. |
Return Value
Name | Type | Description |
numberOfCharacterFormatted | int | Returns the number of characters in the internationally formatted date string. This function returns zero if the date could not be formatted into the buffer. |
Additional Information
Library: Programmer's Toolbox
Include file: toolbox\toolbox.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later