Xbasic
A5_CONVERT_DATE_STRING Function
Syntax
Output_Date as C = a5_convert_date_string(C dateString ,C InDateFormat ,C OutDateFormat [,C separator ])
Arguments
- dateStringCharacter
The original data string, containing values for year, month, and day. Character
- InDateFormatCharacter
A character string containing the letters "Y", "M", and "D" that indicates the sequence of input values.
- OutDateFormatCharacter
A character string containing the letters "Y", "M", and "D" that indicates the sequence of output values.
- separatorCharacter
The character(s) to place between the year, month, and day values.
Returns
- Output_DateCharacter
The reformatted date string.
Description
The A5_CONVERT_DATE_STRING() function reformats a date string, by converting a date string from one format to another. E.g. from DMY format to YMD format.
Example
? a5_convert_date_string("12/31/05", "MDY", "YMD", "-") = "05-12-31"
See Also