date2Str Function
Converts a date into a text string.
MorphX allocates valid values to the formatting parameters if the specified values are not valid.
str date2Str(
date date,
int sequence,
int day,
int separator1,
int month,
int separator2,
int year)
|
Parameter |
Description |
|---|---|
|
date |
The date to be converted. |
|
sequence |
The sequence for the components of the date (day, month, year). Day is shown by 1, month by 2, and year by 3. For example:
|
|
day |
The format for the day component of the date. Possible formats:
|
|
separator1 |
The separator to use between the first two components of the date. Possible values:
|
|
month |
The format for the month. Possible formats:
|
|
separator2 |
The separator to use between the last two elements of the date. Possible values:
|
|
year |
The format for the year. Possible formats:
|
Note |
|---|
|
To use the date format that the user specified in Regional Settings, use strFmt or date2Str with -1 in all the formatting parameters. When the regional settings control the date format, the settings can change from user to user. |
Note