Date: Tue, 24 Mar 2009 09:32:02 -0500
Reply-To: Joe Matise <snoopy369@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Joe Matise <snoopy369@GMAIL.COM>
Subject: Re: AAAA-MM-JJ-HH:MM:SS:NNNNNN
In-Reply-To: <ce1fb7450903240713j3343a34dx7881dbb9417c91ec@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Is there a comprehensive list out there of date/datetime informats?? Those
two (among others) aren't in the SAS 9.1.3 documentation, at least... unless
it's too early in the morning for me ...
-Joe
On Tue, Mar 24, 2009 at 9:13 AM, ./ ADD NAME=Data _null_; <
iebupdte@gmail.com> wrote:
> I reckon I should have tested that. YMDDTTM27.6 does work properly.
>
> data _null_;
> d1 = input('2009-01-30T23:28:42.227291',IS8601DT.);
> d2 = input('2009-01-30-23.28.42.227291',ymddttm27.6);
> put (_all_)(=);
> format d: datetime30.6;
>
> run;
>
> On 3/24/09, ash007 <RamsamyAshley@gmail.com> wrote:
> > how can i transform a character variable with element like
> > '2009-01-30-23.28.42.227291' into IS8601DT format.
> >
> > thanks.
> >
>
|