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.

Featured Replies

  • Newbies

I have an external data source that has a date format of YYMMDD as text.

(do you know what this format is called?)

Anyway, I'm converting this to a regular date format of DDMMYY (ie non-American). I've managed to do it in a complex formula.

Is there a simple method?

I'd suggest converting it into a DATE field using the Date(month, day, year) function, then you can *display* the date any way you want!

Left(datetext, 2) is the year, or at least the last two digits.

Middle(datetext, 2, 2) is the month.

Right(datetext, 2) is the day.

Having the text in YYMMDD format is a bit of a bummer, because you are going to have to guess what the century is.

To work out what the century is, lets make some simple rules: if the number is greater than 50 then it's 19XX, else it's 20XX. This would be:

TextToNum(Case(TextToNum(Left(datetext, 2)) > 50, "19","20") & Left(datetext, 2))

I haven't tested it but this should be close.

The whole thing will therefore be:

code:


Date (

TextToNum(Middle(datetext, 2, 2)),

TextToNum(Right(datetext, 2)),

TextToNum(Case(TextToNum(Left(datetext, 2)) > 50, "19","20") & Left(datetext, 2))

)


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.