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 (September 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 26 Sep 2002 15:28:43 -0400
Reply-To:     "Chakravarthy, Venky" <Venky.Chakravarthy@PFIZER.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Chakravarthy, Venky" <Venky.Chakravarthy@PFIZER.COM>
Subject:      Re: Date format
Comments: To: "Livingston, Arthur (OIG/OAS)" <ALIVINGSTON@OIG.HHS.GOV>
Content-Type: text/plain; charset="iso-8859-1"

Ya Huang has pointed out that I misinterpreted the poster's question. Thanks.

The format the poster is seeking is not yet a SAS supplied format. However, it is easy to create this with the PICTURE date directives:

proc format ; picture mydate low-high = '%y/%0d/%0m' (datatype = date) ; run ;

data _null_ ; newdate = input("08/01/99",mmddyy8.) ; chardate = put(input("08/01/99",mmddyy8.),mydate8.) ; put newdate=: mydate. chardate = ; run ;

#****************************************# # E-mail: # # Phone: (734) 622-1963 # #****************************************#

-----Original Message----- From: Livingston, Arthur (OIG/OAS) [mailto:ALIVINGSTON@OIG.HHS.GOV] Sent: Thursday, September 26, 2002 2:58 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Date format

I have a date in the following format:


It is a character field - 8bytes. I would like to convert it to read as follows:


Thanks for any help in advance.

Arthur Livingston Region III Advanced Techniques Staff 215-861-4501 x2014 215-861-4541 (Fax)

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

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