TestProject Forum

Remove Leading Zeros in MM/dd/YYYY format (ex:09/07/2021)

I want to convert current date 09/07/2021 to 9/7/2021 (without leading zeros) OR add 0’s to 9/7/2021 in testProject. Can you please help.

Hello @gopalat .

You can use the action “Get DateTime Object in a specific format” . It should add a “0” to the Date.

Like this:

Please let me know if that worked for you.

Kind regards,
Ricardo.