• Can we ask why you need to do this?

    Also, this should work: select year(getdate()) * 10000 + month(getdate()) * 100 + day(getdate())

    Replace getdate() with your column name.

    😎