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.

rearrange date field output

Featured Replies

I need to take a date field that is not always today's date (example: 8/1/2009) and change the output to yyyy-mm-dd

I'm trying to use a calc field as text since I get a "?" if I use it as date:

Let ( [y = Right ( date ; 4 ) ;m = Left ( date ; 2 ) ;d = Middle ( date ; 4 ; 2 )] ; Substitute ( y & "-" & m & "-" & d ; "/" ; "-" ))

However since the date field isn't 08/01/2009 I can't get a consistent output.

I looked at some custom functions but can't quite find what I need ...

I think I'm close but maybe I'm going about this wrong? Help is appreciated.

Edited by Guest

Use the date functions - Year(), Month () and Day() - to extract individual date elements, instead of text functions like Left() and Middle().

You also do not need the Substitute function,

Try

Let (

[y = Year ( Date ) ;

m = Right ( 0 & Month ( Date ); 2) ;

d = Right ( 0 & Day ( Date ) ; 2)] ;

y & "-" & m & "-" & d )

HTH

Lee

  • Author

I'm getting a "?" with your calc.....

Edit: Spoke to soon. When I changed the calc output to text instead of date it's now ok... thanks

Edited by Guest

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.