In SQL Server how do I format getdate() output into YYYYMMDDHHmmSS where HH is 24 hour format?
getdate()
YYYYMMDDHHmmSS
HH
I\'ve got the YYYYMMDD
YYYYMMDD
select replace( replace( replace(convert(varchar(19), getdate(), 126), '-',''), 'T',''), ':','')