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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -