cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
tom_abramov
Level V

converting a date from a string into a JMP date : AM/PM vs 24hr time problems

Hi,

I'm having trouble converting values like 

08:49:46 PM
10:30:46 AM

from Character Column to Numeric h:m:s 24h format.

I would like to run the conversion without JSL and without depending on Operation system time format. 

 

Please assist.

Regards,

Tom.

1 REPLY 1
gzmorgan0
Super User (Alumni)

Re: converting a date from a string into a JMP date : AM/PM vs 24hr time problems

Change your format to Duration, or  Format( "hr:m:s", 13, 0 ).  Note the other format with AM and PM is Format("h:m:s",13,0)