OrganizationNow Function
OrganizationNow () as DateTime
Category: | Date |
Description: | Returns the current date and time in the organization's time zone |
Supported Context: | BusinessRules |
Returned value as DateTime | |
Example #1 |
This function is very useful as parameters in other functions. In addition, it is used commonly when comparing the current date and time with another datetime field or capturing the current time when a specific workflow ran. For example, when creating a Custom Action for approval, use this function to log the time the approval was completed. Use together with ToDate(OrganizationNow()) to get the date/time in the organization's time zone (DateTime type) and convert it into the date type. Note: Use ToDate() and not Today() for such purposes. |