Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Date format problem

Featured Replies

Using FM7. My dbase has about 15000 records, all of which have been imported from various sources, some Excel but mostly earlier versions of FM. There is a date field where the date displays correctly for all except for about 700 records where it shows up as ? ... Have tried all different date formats but still ?... back at the source, the date format is correct. Any suggestions?

Cheers, Bapak

Is this a Date field or Text in the old file?

What does the actual year part of your date look like when you click in the field. i.e. 02 or 2002?

Lee

  • Author

It is a date field and year has 4 digits, i.e. 2003

Bapak

With imports, many things are possible. We would need to know how the date on those 700 is broken to know how to script fixing them; because they must be fixed at the data level. And just to verify, it is a DATE field in your new file as well?

Just to see, try this:

Create a calculation (number) with: IsValid(yourDateField)

Search for 0 and see if the same 700 come up. This will verify that they contain text or wonky characters which need to be stripped. Never mind ... of course they are invalid or you wouldn't get the ? in a date field.

I'm sure that you have enlarged enough the field !

That won't matter with dates, Daniele. You can scrunch them good and they'll still display part of the date. And if the other dates display fine, it's not Field Format either.

Are the month/days reversed, as in an International setting? Has this import or file been exposed to different computer date preferences? Because it sounds like either text or characters are mixed in with part of it ... or the dates are invalid for your computer preferences. In which case, SOME of the date fields would be fine because they are 'legal' even if reversed, ie, 1/11/2005 and 11/1/2005 are both valid. But 15/3/2005 is not valid. Can you verify that the months listed on those ? records are valid months?

Edited by Guest

You can scrunch them good and they'll still display part of the date.

correct, LaRetta !

You can search for invalid dates directly in the date field, by entering a question mark.

Of course. :blush2: I knew that too. Momentary logic brownout ...

  • Author

Thanks folks for your assistance. Problem resolved.. It appears that the 700 odd files imported from Excel was in text format, despite earlier indications that it was in date format.

Cheers, Bapak

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.