GetCurrentDateTime (open)
Returns the timestamp of the current date and time on the server
Syntax
LOADLIB "wh::datetime.whlib";
DATETIME FUNCTION GetCurrentDateTime()
Return value
DATETIME
A DateTime value, representing the current date and time at the WebHare system in UTC.
Description
You can use the @italic AddTimeToDate() function in conjunction with this function to get the time and date in different time zones.
Examples
// returns a timestamp of the current date and time
DATETIME serverTime := GetCurrentDateTime();
// returns a timestamp of the current date and time in UTC + 1
INTEGER ExtraMsecs := 60 * 60 * 1000;
DATETIME UTC1 := AddTimeToDate( ExtraMSecs, GetCurrentDateTime() );