By default Z letter appending to date in tojson() format. Please find below tojson() format output....
Output:
{"startDate:2019-01-02Z","endDate:2019-01-07Z"}
Discussion posts and replies are publicly visible
Hi deviratnamv
You can use the following approach if you want to avoid appending Z (means, zero hour offset) character at the end of a Date while converting it into a JSON (Text) format.
a!toJson( { startDate: text(today(), "yyyy-mm-dd"), endDateTime: text(now(), "yyyy-mm-dd hh:MM:ss a") } )
However, unless it's not business critical requirement for you, i wouldn't recommend you to remove Z offset from a Date.
Hope this will help you.