How to convert UTC timezone to CST

I have a JSON listener that gives me a string date in UTC format. My example date is: “2024-08-16T09:30:00.000Z”. This Date which is coming is stored into Param.Date for example.

I have formatted this date to normal format using

@String.replaceAll(@String.replaceAll(Param.Date,“-”,“”)“:”,“”)

UTC format changed to 20240816T093000.000 which is in Param.DateTime

Now this needs to be converted to CST format which my output should return 20240816T043000.000.

@RAVIRAJAP

Please use this function : @DateTime.FormatDateTime(,“yyyy-MM-dd”,“America/Chicago”,“en_US”)

@RameshSangili

Thank you for your solution