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

[color:red]How do I get the month to show as 01 vs 1?

Thanks for you help

If you want the layout to show 01/01/2009, right click on the date field in Layout mode and choose "Date Format" and choose your formatting choice.

Hope that helps!

  • Author

I need to put this into a calculation text field. Thus, the final text field will look like

[color:red]2009-02-19

Currently: It looks like [color:green]2009-2-19

This is the calculation I am using--

[color:brown]Year ( enderdate) & "-" & Month ( enderdate ) & "-" & Day ( enderdate )

Since you are using a text field, take a look here.

http://fmforums.com/forum/showtopic.php?tid/201019/post/316668

  • Author

Ya, that worked great. I would have never thought of using SerialIncrement. Wow, that creative.

[color:red]Here is a question--Mysql requires a format of yyyy-mm-dd. I would think filemaker would have function for this format?

Thanks again for the great tip.

Doesn't have a native function... if you don't want to construct per the given examples, I wrote this CF to deal with all date / time formats though:

http://www.fmfunctions.com/fid/76

e.g. php.date("Y-m-d",dateFieldHere) will get you what your after.

Edited by Guest

How about:


Let ( 

ymd = 10^4 * Year ( date ) + 10^2 * Month ( date ) + Day ( date )

;

Replace ( Replace ( ymd ; 7 ; 0 ; "-" ) ; 5 ; 0 ; "-" )

)

---

Assumes dates no earlier than year 1000.

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.