I am getting CurrentItem.LastProcessingOn to string Variable Lastdate. I am trying to convert it to hours in 24 hour format but it is converting to 12hour format. Please refer the below screen shots. Please let me know what i am missing

I am getting CurrentItem.LastProcessingOn to string Variable Lastdate. I am trying to convert it to hours in 24 hour format but it is converting to 12hour format. Please refer the below screen shots. Please let me know what i am missing.
image
image
image

image
image

Hi,

Can you try as the following?

 CDate(lastDate).ToString("MM/dd/yyyy hh:mm:ss tt")

Regards,

It has converted 12/13/2023 20:15:29 to 12/13/2023 08:15:29

Hi,

Can you share expected output?

Regards,

image
image

So we would use HH for the hour part
grafik

instead of:
grafik