GetTodayAsync¶
Returns the current date in the specified time zone asynchronously.
1 | |
Parameters¶
string timeZone optional
Specifies the target time zone for the current date in "hh:mm" format. Optional. If not specified, the system's timezone information is used.
Returns¶
A Promise that resolves to a new DateTimeOffset value representing the current date in the specified time zone.
Remarks¶
You may use the toISOString() method for comparisons in the XML database, such as:
Date comparison¶
1 2 3 4 5 | |
Info
You can use the ,Calendar.GetDateTime, or ,Calendar.GetDateTimeAsync, methods as an alternative way to get relative date-time values.
Example¶
1 2 3 4 5 6 | |
Result¶
1 2 | |