Developer Function: Server Script: utilities.Today
Overview¶
"Server Script" returns the date and time of 0:00 on the current day in UTC local time.
Supported Versions¶
- Pleasanter 1.1.39.0 or later
- Pleasanter .NET Framework version 0.50.263 or later
Syntax¶
Parameters¶
There are no parameters.
Return Value¶
Return the datetime of midnight on the current day in UTC local time. If executed on June 21, 2023, Japan time, "2023/06/20 15:00:00" will be returned.
Usage Example¶
In the following example, the datetime of the day is entered into DateA. The server script will treat it as a UTC datetime, but after the server script ends, DateA will store the datetime converted to local time.
JavaScript¶
Notes¶
This is a method used in "Server Script". It cannot be used in "Script".