CNV_DATE
Syntax
string_val = CNV_DATE ( time, type );
- Input arguments
-
int time Time as returned by GET_TIME. int type Conversion type as one of the following:
0 (mm/dd/yy)
1 (dd.mm.yy)
2 (dd-mm-yy)
3 (mm/dd/yyyy)
4 (dd.mm.yyyy)
5 (dd-mm-yyyy)
6 (yyyy/mm/dd)
7 (yyyy-mm-dd)
where 'mm' is the month as two digits, 'dd' is the day of the month, and 'yy' or 'yyyy' is the year.
Return Values
- Success:
-
string converted_date Current date, converted into the specified string format.
- Failure:
-
int -1 Script interface error. Date conversion failed.
Description
This function converts the date part from a time value into a string.