Returns a string representation of timestamp in the format 'YYYY-MM-DD'. If timestamp is not defined, the function will use the current local system date.
string = sqldate([number timestamp])
Parameter Description timestamp The number of seconds since January 1, 1970 UTC (commonly called a UNIX timestamp).
Returns a formatted date string in the format 'YYYY-MM-DD'.
No remarks.
print(sqldate());
The above example will output something similar to: "2009-01-01"
print(sqldate(0)+" "+sqltime(0));
The above example will output something similar to (note the adjustment for local time): "1969-12-31 19:00:00"