What's the easiest way to convert any date to YYYYMMDDHHMISS format?
convert(char(8), getdate(), 112) for YYYYMMDD I've got
select convert(char(8), getdate(), 114) returns HH:MI:SS with the colons
Other than just removing the colons and adding the two
TIA
-Jim
Start Free Trial