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
Post a Comment