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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing text as datetime

Status
Not open for further replies.

Natalie

Programmer
Jun 6, 2000
29
US
This may be a simple question.

When importing a text file, is there a way to import the date fields as datetime in one step?

I'm new to DTS, so I've only used the Import Wizard. Is this possible in the Wizard or do I need to create a DTS package? If so, what's the best way to convert the text to datetime?

Thanks!

Natalie
 
It depends what format the date is in, in the 'text' field.

Please post what the data looks like and we will try to help you.
 
The source data isn't pretty. They use different date formats. For instance:

06/15/00
6/15/00
06/15/2000
6/15/2000
06/15/2000 12:00:00 AM
6/15/2000 12:00:00 AM

Thanks!

Natalie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top