I have a bunch of dates currently the first of each month and I need to change them all to the 22nd of the month all at once with an update query. SQL isn't liking the syntax I've tried to specify the new date. What is the syntax to do this? Thanks!
CONVERT (datetime, MONTH(CompletionDate) + '/22/' + YEAR(CompletionDate))
It keeps giving me the "Syntax error converting the varchar value '/22/' to a column of data type int." message.
CONVERT (datetime, MONTH(CompletionDate) + '/22/' + YEAR(CompletionDate))
It keeps giving me the "Syntax error converting the varchar value '/22/' to a column of data type int." message.