24 and 12 Hour Times

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT CONVERT(char(5),n,108)+LOWER(RIGHT(FORMAT(n,'  h:mmtt'),8))FROM(SELECT
top 24 dateadd(hh,Number,0)n FROM master..spt_values WHERE'P'=type)x

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results