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.

CurrentDate format problem

Featured Replies

  • Newbies

The [FMP-CurrentDate:short] tag produces a date in the MM/DD/YY format. FileMakerPro's short date format is MM/DD/YYYY. So an search generated via a CDML tag will fail.

Anyone know a way around this?

Thanks, PK

I hope that through your own experimentation you have resolved this issue by now. If not, you may want to look back (around Feb this year) in this forum for a topic entitled "currentdate - Research is good for the soul ", whcih I began. Also look at the thread by Turansky to which it refers. You may find some useful information there.

According to the CDML reference, the dates are returned according to the short and long date formats defined by the operating system.

Try changing the country preferences for your computer and see if it makes a difference.

Is the page with the [FMP-CurrentDate] tag being processed by WebCompanion first? wink.gif

All the best.

Garry

  • Author
  • Newbies

Apologies for not looking carefully through past posts before askig the question. Thanks Keith for pointing this out.

Just in case anyone is looking a solution and comes across this posting, here's what I did:

Created a calculation field called "Today"

Today=Status(CurrentDate)

The calculation result is Date. And, it is an unstored calculation result.

This produces the current date in the same format that FileMakerPro uses, so the CDML compares this field to the date entered by FilemakerPro when the record was created.

Thanks

Glad it helped. I knew it was there and was too lazy to write it out.

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.