GetSiteTime
Returns the current time at the data-entry site.
Syntax
GetSiteTime()
Returns
Current time at the data-entry site.
Notes
The function returns the current time in the time zone of the data-entry site, not the time zone of the location of the InForm server. To get the current time at the InForm server computer, use _GetCurrentDate.
Example
This example of a constraint rule uses both the GetSiteTime and _CompareDates functions to check whether the date entered is in the future. It is attached at the item level to a DOV item.
evaluate on Form Submission
value = _CompareDates(this.Value, GetSiteTime())
when value == 1
issue query: Date cannot be in the future compared to System Date
You could also write the rule to evaluate to true or false instead of to a numeric value:
evaluate on Form Submission
value = _CompareDates(this.Value, GetSiteTime()) == 1
when value is true
issue query: Date cannot be in the future compared to System Date