Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

import strange datetime format 1

Status
Not open for further replies.

SicAIvanov

Technical User
Aug 30, 2010
2
IT
Simple one I suppose, but I cannot solve it on my own.

I have table which contains a string. The string is something like:

"9/13/2010 11:52:54 AM"

As you probably have guessed, I would like to "translate" this string in a SAS datetime object.

Can you help me out?

 
Why not use the 'mdyampm' format?

ex.
Code:
sasdatetimevar = input(Yourdatevalue,mdyampm25.2);

Klaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top