SQL stores dates as YYYY-MM-DD HH:MM:SS.I need to return the dates as YYYYMMDD.I can't use
DATEPART(YEAR, objname.columnID)+
DATEPART(MONTH, objname.columnID)+
DATEPART(DAY, objname.columnID) because this converts each value to data type int, then adds them together.Any IDEAS?
DATEPART(YEAR, objname.columnID)+
DATEPART(MONTH, objname.columnID)+
DATEPART(DAY, objname.columnID) because this converts each value to data type int, then adds them together.Any IDEAS?