LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2011, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 25 Jan 2011 12:01:04 -0500
Reply-To:   Suzanne McCoy <Suzanne.McCoy@CATALINAMARKETING.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Suzanne McCoy <Suzanne.McCoy@CATALINAMARKETING.COM>
Subject:   Re: How to convert character date to numeric date Options
Comments:   To: Tom Smith <need_sas_help@YAHOO.COM>
In-Reply-To:   <201101251646.p0PGSDwi027766@willow.cc.uga.edu>
Content-Type:   text/plain; charset="us-ascii"

data one; chardate='2007-05-01'; dateval=input(chardate,yymmdd10.); put dateval=; put dateval=yymmdd10.; run;

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Tom Smith Sent: Tuesday, January 25, 2011 11:47 AM To: SAS-L@LISTSERV.UGA.EDU Subject: How to convert character date to numeric date Options

I have the following "date" variable which is in character

date ------ 2007-05-01 2007-12-09 2008-09-04

I need to convert it to a numeric variriable which looks like same as below:

date -------- 2007-05-01 2007-12-09 2008-09-04

I am not sure whow to do it. Thank you so much.


Back to: Top of message | Previous page | Main SAS-L page