03-03-2016 11:38 PM - last edited on 03-04-2016 03:14 AM by Reeza
Hi I have a question in my code;
I have date values in character format;
Exp: Date 2015-09-25
I need to convert the date into 2015/09/25 which is in character format.
format date yymmdds10.;
But the code resulted in value numeric format. I need the value in chracter format. 2015/09/25. Please help.
03-04-2016 12:59 AM
03-04-2016 04:26 AM
There is actually two instances where you might want character dates - ISO dates for instance are character. The other is for display purposes, most times put to format is fine, but sometimes you may want additional information for report purposes.
But I totally agree with you, unless there is a very good reason there is no reason to not use numeric date or time variables as they are far easier to use. I suspect he is trying to put these in macro list or something similar (in which case don't).
03-04-2016 06:17 AM
You can use the inverse of INPUT, PUT:
I refrain from disputing your expressed need for this. I think it is out of order until you have been asked questions on the matter, which has not happened. And I won't.
Hope this helps,