Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Y2K dates

Status
Not open for further replies.

626

IS-IT--Management
Aug 28, 2002
6
US
I recieve txt file data and import for an outside company that has a legacy system, there Y2K fix was to make the dates look like this: 202/1/1 (y/m/d)and add 1800 to the year. Does anyone know away I query or any other process so I can add 1800 to the date format above so I get the date to 2002/1/1, once I start building reports from the data the date layout my confuse end-users?


Thanks alot.
 
Why don't you just run a query after the import and add the 1800. Assuming the field is defined as datetime.

look up the syntax for dateadd, I believe it is as follows.

update table
set thedate = dateadd('y',1800,thedate)
from table
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top