Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

convert am/pm to 24 hour

$
0
0

i have this particular column which has am/pm and i would have to convert it to this particular format

For example lets say i have 8:30 PM i would have to write the sql statement that converts the


8:30 PM --> 2030
2:30 PM --> 1430
2:00 AM -->0200
12 Noon --> 1200

I am finding difficulty in writing the statement which converts the time into the particular format i want

Would be eagerly waiting for your replies


Thanks

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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