sql - Convert date to MM//DD HH/MM -


this question has answer here:

how convert date mm/dd hh/mm

example: 04-05 12:42

since on sql server 2012, use format:

select format(getdate(), 'mm-dd hh:mm') 

Comments