User Manual

08.14.2024

MANUAL

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 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」". It cannot be used in "「Script」". ## Related Information <div id="ManualList"> <article class="s-blog_list_unit"><h2> <h2>The specified information was not found.</h2> <p><a href="/ja/manual">Return to top</a></p> </article> </div><input id="SearchTextHidden" type="hidden" value="" />
TOP
このページをシェアする
記載された商品名、各製品名は各社の登録商標または商標です。 © Implem Inc.