Extract time with PM/AM

Hi,
I am trying to convert a string with a time and pm/am. I have tried the string to date&time node but none of my suggestion works. Any ideas?

‘[[h:]hh:]mm aa’

image

Hi,
I think the format h:mm' 'a should work for you.
Kind regards
Alexander

3 Likes

Thanks for the tip but don’t seem to work.
Do I have to take into account that hour is both 1 and 2 digits? E.g. [hh:] ?

Hi,
I tried it with “7:05 PM”, “11:00 AM”, and “01:18 PM” and all of them work with the pattern above. Did you select “Time” in the “New type” configuration field? What’s your error message?
Kind regards
Alexander

2 Likes

Now it worked, thanks a lot!

2 Likes

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