jdgonzalez
Programmer
Hi all,
I have two fields that represent date and time but are both stored as varchar. What I'd like to do is to concatenate them into one field before I export the data. The data looks like this: where hst_dt is in mmddyyyy and hst_tm is in hhmmss.
hst_dt hst_tm
07222004 012004
I'm want the output to be as date datatype as one field. I can get the hst_dt to work by doing to_date(hst_dt, 'mmddyyyy'), but when I do to_date(hst_tm,'hhmmss') is get 'not a valid month'.
Any help you can provide would be greatly appreciated.
I have two fields that represent date and time but are both stored as varchar. What I'd like to do is to concatenate them into one field before I export the data. The data looks like this: where hst_dt is in mmddyyyy and hst_tm is in hhmmss.
hst_dt hst_tm
07222004 012004
I'm want the output to be as date datatype as one field. I can get the hst_dt to work by doing to_date(hst_dt, 'mmddyyyy'), but when I do to_date(hst_tm,'hhmmss') is get 'not a valid month'.
Any help you can provide would be greatly appreciated.