Help using Base SAS procedures

Importing time in hh:mm format

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 19
Accepted Solution

Importing time in hh:mm format

I have a dataset where time is recorded in hh:mm on a 24 hour clock.  When I import this data I am importing as character due to the ":".

How can I convert this to time?

Once it is converted to time, how do I change it from a 24 hour clock to a 12 hour AM/PM format?

Thank in advance!

GST


Accepted Solutions
Solution
‎05-17-2013 10:50 AM
Super User
Super User
Posts: 7,077

Re: Importing time in hh:mm format


All Replies
Solution
‎05-17-2013 10:50 AM
Super User
Super User
Posts: 7,077

Re: Importing time in hh:mm format

Occasional Contributor
Posts: 19

Re: Importing time in hh:mm format

Thanks.  I just needed to convert the data from character to numeric first...

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 469 views
  • 1 like
  • 2 in conversation