Changing Date format

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 138
Accepted Solution

Changing Date format

Hi,

I have date  my dataset as 20120625 which is numeric field. Now i want to change it into date9 format. How can i achieve this?


Accepted Solutions
Solution
‎06-25-2012 06:59 AM
Super Contributor
Posts: 349

Re: Changing Date format

Hi,

Try this..

data have;

x=20120625;

y=input(put(x,z8.),yymmdd8.);

format y date9.;

run;

Thanks,

Shiva

View solution in original post


All Replies
Solution
‎06-25-2012 06:59 AM
Super Contributor
Posts: 349

Re: Changing Date format

Hi,

Try this..

data have;

x=20120625;

y=input(put(x,z8.),yymmdd8.);

format y date9.;

run;

Thanks,

Shiva

Frequent Contributor
Posts: 138

Re: Changing Date format

Thanks Shivas

Frequent Contributor
Posts: 86

Re: Changing Date format

Siva can i have your email id plz

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 227 views
  • 0 likes
  • 3 in conversation