10-02-2015 02:35 PM
can i please get help on this,
wants to convert below character value to date value
char_var=2015.09.19 /*sorry but this is character value that i ended up by pulling it out from long string)*/
date_var=09192015 /*want it as a date*/
thank you in advance,
10-02-2015 02:49 PM
While I can't test this at the moment, you should be able to read the character string directly:
date_var = input(char_var, yymmdd10.);
That will give you the proper date value. For display purposes, choose the date format that you would like. To match the result you originally asked for:
format date_var mmddyyn8.;
10-02-2015 02:55 PM
i don't know why but i used that trick already and i am receiving error saying "limit set by errors= option reached,..."
Miller trick worked though after using format function date9.;
Need further help from the community? Please ask a new question.