I wish to convert date from 2023-05-17 15:02:22 to dd/MM/YYYY format.
I have already tried using the @DateTime.FormatDateTime(.modifiedDateTime,“DD/MM/YYYY”,null,null) but it didn’t work must be because .modifiedDateTime = 2023-05-17 15:02:22.
When I tried with CurrentDateTime it worked because the result is 20230526T053128.077 GMT.
I also tried to convert 2023-05-17 15:02:22 to 20230517150222 by using @String.replaceAll(@String.replaceAll(@String.replaceAll(“2023-05-17 15:02:22”,“-”,“”),“:”,“”), " ", “”) and it also didn’t work.
Your functions works exactly as required, but when I tried to pass a paramter in place of the hardcoded datetime value, could get no return value. Is there a way to achieve passing the same by use of a parameter or property?