User Manual

08.14.2024

MANUAL

Developer Function: Server Script: utilities.Today

## Overview "[Server Script](/en/manual/table-management-server-script)" returns the date and time of 0:00 on the current day in UTC local time. ## Supported Versions 1. Pleasanter 1.1.39.0 or later 1. Pleasanter .NET Framework version 0.50.263 or later ## Syntax ``` utilities.Today() ``` ## 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 Date A. The server script will treat it as a UTC datetime, but after the server script ends, Date A will store the datetime converted to local time. ##### JavaScript ``` model.DateA = utilities.Today(); ``` ## Notes This is a method used in "[Server Script](/en/manual/table-management-server-script)". It cannot be used in "[Script](/en/manual/table-management-script)". ## Related Information <div id="ManualList"><ul><li><a href="/en/manual/table-management-script">Table Management: Script</a><span>08.13.2024 up</span></li> <li><a href="/en/manual/table-management-server-script">Table Management: Server Script</a><span>08.13.2024 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.