Dates in a Process

You may find that using current-dateTime() in a JEE process workflow provides you with GMT time wreaking havoc on your reporting and date storage. You may also be getting a full string date when you’re just looking for a standard ISO date.

tomorrowsDateScreen Shot 2019-02-26 at 12.20.21 PM
current-dateTime()

To get a formatted date, use the “format-dateTime-withFormat” function along with the format you’re looking for. In addition, you can provide the timezone or GMT setting you require (make this a configurable variable where possible).

format-dateTime-withFormat(current-dateTime(), “yyyy-MM-dd”, “EN”, “CA”, “WIN”, “GMT-10:00”)

currentDateScreen Shot 2019-02-26 at 12.43.04 PM
format-dateTime-withFormat(current-dateTime(), “yyyy-MM-dd”, “EN”, “CA”, “WIN”, “GMT-10:00”)