Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

incorrect date conversion

$
0
0

hi all,

i am trying to convert a string to a date, please help me on this.

i tried these options:

 

to_date('01/05/2015 10:00 PM','mm/dd/yyyy hh12:mi ') -> blank output

to_date('01/05/2015 10:00 PM','mm/dd/yyyy hh:mi ') -> wrong output  [output is 2015.01.05 10:00, but expected was 2015.01.05 22:00]

to_date('01/05/2015 10:00 PM','mm/dd/yyyy hh12:mi aa ') ->blank output


Viewing all articles
Browse latest Browse all 4013

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>