Get Date From Datetime

Converts Datetime to Date.

Please note that when Datetime comes directly from the Sugar database (e.g. after getting value using Get Entity Attributes), it is converted to UTC, not the user TimeZone.

Let’s say that the User with TimeZone GMT+3 sees the date and time as 2020-08-03 02:00. In database date is 2020-08-02 23:00, which means after converting such Datetime to Date, the date in the result is 2020-08-02

inputs:

datetime – input datetime value (e.g. from Sugar DateTime field)

  • Required: yes

outputs:

date – extracted date from the input datetime

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *