Date Format issue, while converting string to DateTime
I want the time stamp in the following format "HH:mm:ss dd/MM/yyyy", but the output is the default one, but when I use following code, the output of the code has Date First and Time next
//DateTime Format I wanted
var sdf = "HH:mm:ss dd/MM/yyyy";
// dateValue:DATETIME
var dateValue = new Date();
// dateFormat(dateValue:DATETIME,dateFormat:STRING):STRING
var formattedDate = dateFormat(dateValue, sdf);
// parseDate(stringDate:STRING,dateFormat:STRING):DATETIME
var result = parseDate(formattedDate, "HH:mm:ss dd/MM/yyyy");
But the Outout is from parseDate is 2021-08-19 13:37:32.000 instead of 13:37:32 2021-08-19
Thanks,
Shahsi !!

