BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
tom_abramov

Community Trekker

Joined:

Oct 13, 2015

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

Joined:

Jul 25, 2016

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)