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

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

Recommended Posts

Posted

I' m importing a tab seperated text file, it contains dates which look like this;

10/10/00 when I import the file the field that holds this value (which is a date field) shows the date with the year as a 4 figure number, but instead of showing the year as 2000 it shows it as 1900. Seems strange? Is this a FileMaker error and is there a solution to it ??

Posted

I've had this problem too. I don't know the exact cause, but, it appears to be the result of importing a 2 digit year format.

The fix I've had to use, is to open the import file in Excel and change the date format to mm/dd/yyyy. This should give you the 2000 date, and then you can import it into FMP.

HTH

Posted

If you don't have Excel or some other program, you can use the following script to fix the data:

Show All Records

Go to Record/Request/Page [ First ]

Loop

If [ Year( ImportedDate ) = 1900 ]

Set Field [ ImportedDate, Date( Month( ImportedDate), Day( ImportedDate ), 2000 ) ]

End If

Go to Record/Request/Page [ Next, Exit after last ]

End Loop

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