Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8183 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.