TodayLocal Function

Description:
This function returns the date value that corresponds the current day for the time zone specified in the template profile or a fixed UTC time zone value specified as a parameter in the function.
On the template profile you can specify the time zone for the questionnaire and for the generated document. The values of the profile settings can be obtained using the database parameters {
db_timezone_input
} for the questionnaire value and {
db_timezone_output
} for the generated document value. When used without additional parameters, TodayLocal() will include any relevant Daylight Saving Time.
An alternative function for returning the current date is the Today Function, which returns the current date on the server machine.
Returns:
Date
Parameters:
Parameter
Data Type
Description
1
Number
Time zone expressed as a positive or negative offset from UTC
Example:
When using functions inside a field, remember the field brackets:
{TodayLocal()}
Expression
Result
Today
November 29, 2020
Local time on the server
TodayLocal()
November 29, 2020
Central Standard Time, as specified in the template profile
TodayLocal(0)
November 29, 2020
UTC
TodayLocal(5.5)
November 29, 2020
UTC+5.5
TodayLocal(-25)
November 28, 2020
UTC-25