SpiderFlight
Programmer
I know this is probably very simple to do but I just seem to be stumped. I have a table with a column data type of datetime. The data in this column contains dates spanning of the last few years. What I want to do is update this column with its month and year but change the day to the 1st of the month.
This is what I have written but doesn't work:
UPDATE [file]
SET [Event Date] = DatePart(Month,[Event Date]) + '/1/' + DatePart(Day,[Event Date])
Any help would be greatly appreciated.
This is what I have written but doesn't work:
UPDATE [file]
SET [Event Date] = DatePart(Month,[Event Date]) + '/1/' + DatePart(Day,[Event Date])
Any help would be greatly appreciated.