I am updating some SQL Server 2000 code to SQL Server 2008R2, and there is function that looks a lot like this for converting the time into 24 hour format. What is a cooler/more clever way to do that in T-SQL?
If all you want is just military time:
SELECT CONVERT(VARCHAR(8), GETDATE(), 108) AS MilitaryTime
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With