Deprecated You should handle DateTime objects in UTC (not in local time) and convert the object to a local format, only if necessary.
Please use the currentDateTime in combination with printLocalDateTimeExpression instead.