Start a new topic
Answered

Reformat the Start and End Date in a Groovy Condition

Reformat the Start and End Date in a Groovy Condition


Best Answer

Here is a sample code to change the format of the Start Date from Wed Apr 21 03:24:00 UTC 2021 to 2021-04-21T03:24:00.000+0000


${new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(StartDate)}


1 Comment

Answer

Here is a sample code to change the format of the Start Date from Wed Apr 21 03:24:00 UTC 2021 to 2021-04-21T03:24:00.000+0000


${new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(StartDate)}


Login to post a comment