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.

DateField Auto Calculations?

Featured Replies

I know this may seem odd to some people, but im trying to get a date field to be quicker for data entry..

Ex instead of typing 01/01/01 as a date you can type 010101 and Auto-Enter an auto enter calculation will format it to a correct date format of 01/01/01.

My Calculated auto entry is:

Case ( Length ( datetest )=6 ;

Date ( Left ( datetest ;2 ) ;Middle ( datetest ; 3 ;2 ) ; Right ( datetest; 2 )

))

Pretty Simple and straightforward... but the problem is I always get errors of wrong date format. Any ideas how to do this?

Hi

you can't do that in a DATE field.

But you can do in a text field, even better using a custom function like this:

http://www.briandunning.com/cf/373

  • Author

Ive tried that and it works but theres one little issue...

I sort the portal records by date and when the portal is shown, the order isnt correct.

Edited by Guest

That is because the result of that CF is text ( pseudo_date ) NOT date.

So you need a new calc field, result date, with the calc: GetAsDate ( pseudo_date) and sort by it.

So in order to make easier data entry, we've needed to store a date in a text field with an auto-enter calc to parse out the entry, then make a date field with a calc that parses out the entry in the text field.

All of this to save the user from typing //...

What we don't do for our user !

BTW: I didn't like to type those /, too.

So in order to make easier data entry, we've needed to store a date in a text field with an auto-enter calc to parse out the entry, then make a date field with a calc that parses out the entry in the text field.

Yes and no. Yes, Filemaker validates a date field BEFORE applying an auto-entered calculation (unless you are using a custom dialog for the entry). No, you could enter the shorthand into a global text field and have the date field grab it from there AND do the conversion to a date at the same time. Note, however, that it's real easy to get invalid dates into the date field this way (since the auto-entered result is NOT validated).

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.