JennyPeters
Programmer
Here's the scenerio:
I need to append records from one table1 to table2.
I need the date to change from full datetime data, '11/13/03 12:23:43 AM' to just '11/13/03'.
In other words, in my INSERT statement I need some syntax that will remove the time portion of the date, and only insert the 'date' portion.
Before you reply:
1. It's not a format issue. It's a data issue.
2. DATEPART is great to remove the month, day, year etc, but how would you add these parts together to make a date that inserts correctly.
Please help!
I need to append records from one table1 to table2.
I need the date to change from full datetime data, '11/13/03 12:23:43 AM' to just '11/13/03'.
In other words, in my INSERT statement I need some syntax that will remove the time portion of the date, and only insert the 'date' portion.
Before you reply:
1. It's not a format issue. It's a data issue.
2. DATEPART is great to remove the month, day, year etc, but how would you add these parts together to make a date that inserts correctly.
Please help!