Question

IQera
MU
Last activity: 17 Jul 2023 4:42 EDT
Convert date format to from 2023-05-17 15:02:22 to dd/MM/YYYY
Hello,
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.
Can someone help please?
Thanks