Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
SQL
CONVERT time string into 12 hours in sql
zoli
Programming language:
SQL
2021-04-19 16:49:59
0
Q:
CONVERT time string into 12 hours in sql
JOrg Armorg
Code:
SQL
2021-07-21 03:58:31
declare @t time set @t = '14:40' select CONVERT(varchar(15),@t,100)
0
Tags
string
int
time
sql
hour
into
hours
Related
SQL server select to get sum of hours
print intervals of 15 minutes in sql query
sql server current date minus 5 years
3 days back in sql server
Add 2 hours to current time in MySQL
datetime add 2 hours sql
mysql add hours to datetime
New to Communities?
Join the community