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.
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”)