cknudsen01 Posted June 28, 2002 Posted June 28, 2002 Hi Everyone, I'm having trouble importing dates into my database. I'm importing from a tab separated text file into a date field. The problem is that the date in the text file is a different format from my system. i.e. the text file is month/day/year and my system is day/month/year Once the data is imported, I can't seem to work with it like a normal date because it's been imported wrong. Does anybody have any suggestions? Christian Toronto, Canada
The Bridge Posted June 29, 2002 Posted June 29, 2002 You could import the Date as formatted into a temp text field, then use this calc to convert the imported date to your system format: Date = TextToDate(MiddleWords(Substitute(Date_As_Text, "/", " "), 2, 1) & "/" & LeftWords(Substitute(Date_As_Text, "/", " "), 1) & "/" & RightWords(Substitute(Date_As_Text, "/", " "), 1)) Date_As_Text is the field you've imported the "faulty" dates into. Hope this helps!
Recommended Posts
This topic is 8183 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now