Date and Time Difference tool counts wrong difference and wrong date format

Anonymous 8 months ago in Studio / Toolbox 0

I checked date difference and date format in Utility - Date and Time Difference example of Warewolf where I found it calculated wrong difference and also date format was not correct.

Warewolf Version I am using is

Current Date: 3rd July 2023
Date Format passed in example is: yyyy/mm/dd 12h:min:ss am/pm
New date should be like 2023/07/03 but in example it was resulted 2023/03/07.

Image 1103

Date Difference:

Image 1104

Image 1105