A date or datetime does not reflect the expected value for the user or the time zone.
When setting the value for a date like so:
pv!myDate = date(2016, 08, 17)
The displayed date is sometimes one day prior:
"08/16/2016"
The variance seen is the GMT offset for the user or Appian-wide time preference being applied. The date set in the example above is equivalent to:
"08/17/2016 00:00:00 GMT"
The date is set in GMT and, by default, does not contain the GMT offset for the User.
gmt(date(2016, 08, 17))
This article applies to all versions of Appian.
Last Reviewed: March 2017