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.

converting a text field to date format...

Featured Replies

Hello, I have a text field in my database which stores the date in the format dd/mm/yyyy

I want to convert this to date format because it should have been in date format anyway.

When I try, the standard warning pops up saying "anything after the first 255 characters will be deleted".

I just wanted confirmation that by changing the format, my data will be preserved - eg the dates are still dates, but now stored in date format.

Will my data still be ok?

It's been a while since I had to do this, and I just wanted confirmation.

In a word "yes".

The notice is telling you if there were more than the 255 characters, you will lose the data beyond the 255 limit.

Lee

  • Author

So I don't need to do a TextToDate() on the field contents before changing the format in the define fields box?

I love FileMaker

That all depends on how the dates have been entered into the field, and how consistent the data entry is. I'd do some tests and find out.

I'd create another date field in the file and use the Replace function to play around with calculations, see what works and what doesn't. If it all goes pear shaped you delete the new field and everything is back where it was. When you are happy with the conversion just replace the original field with the new one, then delete the new field.

This sort of data wrangling is time consuming and expensive. It's an industry in itself. There are generally no 100% solutions, but some require less manual processing than others.

  • Author

The format is all consistent dd/mm/yyyy so I should be ok - obviously I'll take an export of all that data so I can just read it back in should the worst happen.

thanks

  • 3 months later...

I wish I had access to the original message posted here. It seems to have changed topic...

My problem is similar. I am converting somebody's .fp3 to .fp7.

They had the dates as text files in dd/mm/yyyy format.

I need a date field in the same format. The problem is...

Somewhere the dates went American on me in the conversion process. So I'l like to convert the text mm/dd/yy to date-type dd/mm/yyyy.

I have my regional settings set to dd/mm/yyyy, field formats also. I've a few things and had enough for now, particularly since I've got the strange feeling I've been tyhrough all this before!

Steve

Try making a clone of the file with the computer set to dd/mm/yyyy. This should change the file to you configuration.

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.