Skip 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 Formatting Problem

Featured Replies

I have some data imported which has the date formatted so FMP apparently can't recognize it.

The dates are three letter months, space, two digit date, comma, space 4 digit year: Like This-> Oct 20, 2009

I tried reformatting with the Format Date but it gives me a question mark. I also tried a "getAsDate" calculation which didn't work either. Ideas??

Thanks Much

I'm unsure what you now have in the field. If it is a date field [color:green](or a text field) which was imported with improper date as you indicated (and you haven't changed the format in an attempt to repair it), then you can use this calculation:

Let ( [

m = Int ( 1 + Position ( "JanFebMarAprMayJunJulAugSepOctNovDec" ; Left ( textDate ; 3 ) ; 1 ; 1 ) / 3 ) ;

d = MiddleWords ( textDate ; 2 ; 1 ) ;

y = Right ( textDate ; 4 )

] ;

Date ( m ; d ; y )

)

Before you use a Loop and Set Field (or Replace Field Contents) to repair the field, back up first and you might also create a calculation (result is date) with this and view your results so you won't have any surprises. :smile2:

UPDATE: This calc will work whether your field is date format or text. But it, of course, should be a date field. You can then display the date any way you wish using layout-level date formatting ( Format > Date ).

Edited by Guest
Added update & green

  • Author

You are awesome.

Thanks so much.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.