| Date: | Mon, 14 Mar 2011 15:46:17 -0400 |
| Reply-To: | Nat Wooding <nathani@VERIZON.NET> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Nat Wooding <nathani@VERIZON.NET> |
| Subject: | Re: How to convert date format |
| In-Reply-To: | <718202.63256.qm@web113315.mail.gq1.yahoo.com> |
| Content-Type: | text/plain; charset="us-ascii" |
Jane
You can read this with the mmddyy. Informat.
Nat Wooding
Data dates;
input date mmddyy.;
format date mmddyy10.;
cards;
6_20_2006
run;
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of jn mao
Sent: Monday, March 14, 2011 3:26 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: How to convert date format
Hi SAS-Ls,
I have a date data input with character type, for e.g. 6_20_2006. How can I
convert them to 6/20/2006 format, so SAS can analyze them as date data.
Thanks much.
Jane
|