Jump to content
Server Maintenance This Week. ×

Converting Non USA Dates?


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

Recommended Posts

When I import records from a distributor, if the country field is not USA, the days and months are reversed in the date fields.

Instead of mm/dd/yyyy

I get dd.mm.yyyy

I have two sets of date fields for every record I import, a start date and a closing date. And the non USA dates are made with periods instead of slashes.

can I set a script or something so that if it says USA in one field, it doesn’t change the two date fields? but if it does NOT say USA in that field, it switches the dd.mm.yyyy to mm/dd/yyyy in both of the date fields for that record?

right now i'm just looking them up and doing a batch replace, but i bet there might be a way to do it when I'm importing the records.

Thanks! Adam

Edited by Guest
Link to comment
Share on other sites

  • 2 weeks later...

It worked exactly perfect. I tested it alone, and now i'm going to bring those calculation fields you made into my database.

Luckily the information I get is very consistent. A robot from the distributor sends the information, so humans like me won't be able to make typos.

Sorry I take a while to reply after you nice people offer your help. I just go out of town a lot, and i don't take filemaker on the road with me.

Link to comment
Share on other sites

This topic is 6111 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.