thanx for your reply,
actually i am reading the data from text file to sas dataset ,then i need to convert that into datetime format
In first dataset after file reader field is Character,after converting field is numeric
value i ma getting from file is 2008-09-06-03.30.45.101010
put date_num date. time_num time. datetime_sas datetime22.;
You have many ways to import and format your datetime, date and time values. Your 'problem' is that you got the year first in your datetime text, where's SAS normally got it last.
If you can find a SAS date function or informat/format then use it, and not the substr I use in the small sample above (its quick and dirty - like my 'dirty' datetime transformation).