date - How to convert yyyy-mm-dd hh:mi:ss into mm-dd-yyyy hh:mi:ss in Oracle? -


i have varchar column , want convert yyyy-mm-dd hh:mi:ss mm-dd-yyyy hh:mi:ss , cast date. how can done?

to convert string date:

to_date (the_string, 'yyyy-mm-dd hh:mi:ss') 

if want formatted string in format mm-dd-yyyy hh:mi:ss:

to_char (to_date (the_string, 'yyyy-mm-dd hh:mi:ss'), 'mm-dd-yyyy hh:mi:ss') 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -