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 (February 2004, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 9 Feb 2004 12:29:19 -0500
Reply-To:   Patrice.Bourdages@IAAH.CA
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Patrice Bourdages <Patrice.Bourdages@IAAH.CA>
Subject:   Re: How to convert date and time to sas date?
Comments:   To: saqi2000@TOTALISE.CO.UK
Content-Type:   text/plain; charset="iso-8859-1"

Try DATEPART() function in order to extract just the date like :

format MyDate yymmdd10.; MyDate = DATEPART(YourDateTimeVar);

Hope it helps...

Patrice Bourdages Industrial Alliance, home and car insurance

-----Message d'origine----- De : Saqi [mailto:saqi2000@TOTALISE.CO.UK] Envoyé : 9 février, 2004 12:15 À : SAS-L@LISTSERV.UGA.EDU Objet : How to convert date and time to sas date?

Hi their,

I would like to convert the following 12FEB2004:00:00:00 in to 12/02/04. Can you please tell me how can I do this?

Thanks

Saqi


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