If you can read it in as a TIME instead this becomes fairly easy:
data sample;
input year month date time : time.;
format time time.;
cards;
2014 6 10 08:12
2014 6 11 08:16
2014 6 13 08:34
2014 6 14 08:12
2014 6 15 08:19
2014 6 16 08:45
;
data want;
set sample;
time_want = dhms(mdy(month, date, year), 0, 0, time);
format time_want E8601DT.;
time_want_char = put(time_want, E8601DT.);
run;
proc print;run;
If you already have time as character you can convert it using the following and then replacing time in the code above with time_num.
time_num=input(time, time.);