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.

Importing Month/Year Date

Featured Replies

Hello. I've got what I hope is a quick question. I am importing records from a comma-delimited file. The file contains dates in two formats.

The first format, which is like this:

01/05/04

imports just fine, as: 01/05/2004.

However, the second format, which is like this:

01/05 (for January 2005)

imports in a screwy way, as FM reads it as May 1, which is definitely not correct.

I can import this date as text, but I will need to be able to sort these fields as dates.

What can I do?

THANKS!

Edited by Guest

...can import this date as text, but I will need to be able to sort these fields as dates.

If you are importing into a date field, 01/05 should be interpreted as January 5, 2006 (current year). How will you determine what year is appropriate for the record? If you are getting a reverse month/year then it means that the file is set to international and is incorrectly reading the text. If so, you should clone the fine under your current setting and it'll stick.

But you should certainly make them true dates. Don't leave them as text because it will haunt you. :wink2:

  • Author

Thanks for the quick response. I don't think I was clear, though:

In my file, 01/05 means January 2005.

After import, the date is May 1, 2006.

So, things are really wrong after import.

How can I convince FM to import my date as month and year?

Ah. Then add an auto-enter via calculation to your new date field. How will determine what day to insert? And will the month and year always be padded with leading zero?

  • Author

I _think_ I understand. . .

Are you suggesting that I import that field as text, then modify it to add a day of month, then convert it to date format?

If so, how can I do that? I'm very much a newbie here.

If my field reads like this: 05/05 how can I make it read like this: 05/01/05?

By the way, I don't care what day of the month I add, as that doesn't matter for my calculations. In addition, yes, I always have leading zeroes.

Thanks!

  • Author

Sadly, I am still stumped on this.

As I understand it, I need to convert dates from this format:

month/year (as in 01/05, for January 2005)

to this format:

month/date/year (as in 01/02/05, for January 2, 2005).

Can I convert these dates while they are in text format via a calculation?

I don't care which day of the month I use--that isn't a concern for me, as I will never sort or search by anything more specific than month and year--but I do need to do something, as these month/date format years are consistently imported wrong. . .

THANKS!

Back up first. FM, as a date, doesn't like switching its pieces around during import so leave your textDate field as text (with NO auto-enter) and create a new calculation (result is date):)

Left ( textDate ; 3 ) & 1 & Right ( textDate ; 3 )

Then search on this new calc instead. :wink2:

LaRetta

  • Author

This worked beautifully. Thank you! You make it seem so easy. . .

Create an account or sign in to comment

Important Information

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

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.