LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 21 Mar 2002 12:32:17 -0500
Reply-To:     Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject:      Re: actual date (sysdate?)
Content-Type: text/plain; charset=ISO-8859-1

On Thu, 21 Mar 2002 18:05:36 +0100, Jörg Zimmermann <needful@WEB.DE> wrote:

>Hi, > >how can I get the actual date (the date, I start a sas program) >in german format, like "21.03.2002"? >I want to save it as character in a sas-table. > >Thanks in advance. > >Joerg

data a; start_datum=translate(put("&sysdate"d,ddmmyy10.),".","/"); akt_datum=translate(put(today(),ddmmyy10.),".","/"); run;

start_date and akt_date might differ a bit, because akt_date give you the date at runtime of a SAS session which might be started yesterday or a week ago.


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