How to convert a time with AM/PM to a datetime var?

Hi,

I am having trouble with importing and converting a DateTime from an datatable.

Input format :
03:00 pm

Desired outcome :
15:00:00

Any help would be appreciated

@Zak_Cooper You can use this

                                     assign string v1 = DateTime.Now.ToString("HH:mm:ss tt")
1 Like

Thanks indra, worked like a charm :slight_smile:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.