|
-
Jul 26th, 2005, 10:01 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] update years from 190x to 200x
I had some dates that got imported incorrectly and I need to update them. It assumed everything that came in as xx/xx/0x was xx/xx/190x. How do I update the years in all those fields to be 200x??
-
Jul 26th, 2005, 10:07 AM
#2
Thread Starter
Frenzied Member
Re: update years from 190x to 200x
Nevermind. I got it:
"UPDATE CompRemoved SET DateRemoved = DateAdd(year, 100, DateRemoved)"
-
Jul 26th, 2005, 10:11 AM
#3
Re: [RESOLVED] update years from 190x to 200x
something like this should work for Sql Server:
tabledate = dateadd(year,100,tabledate)
edit:
too slow
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|