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.

Proper syntax for Date Query

Featured Replies

I'm trying to query my database for the records from the current day.

<a href="FMPro?-db=database.fp5&-lay=mylayout&-format=response.htm&-error=error.html&-CurrentDate=Creation_Date&-sortField=Day_of_Year&-sortorder=descending&-maxRecords=10&-find">

The query works, but returns records from all "Creation_Dates",not just today's records. This seems like a simple syntax issue. Is there a quick fix for this, or a well-written description (with examples) of proper syntax use?

Thanks,

Lawrence

I think it is the "-" in &-CurrentDate=Creation_Date

It should be &CurrentDate=Creation_Date

  • Author

Doesn't work. With that change the query fails.

thanks for trying.

quote:

Originally posted by Lawrence:

Doesn't work. With that change the query fails.

thanks for trying.

Are you saying, that the CurrentDate is not name of the field?

Are you using the function [FMP-CurrentDate]?

  • Author

Yes, I'm am trying to use the function [FMP-CurrentDate], to retrieve all records from the Creation_Date field that happened today.

Should it read &[FMP-CurrentDate]?

quote:

Originally posted by Lawrence:

Yes, I'm am trying to use the function [FMP-CurrentDate], to retrieve all records from the Creation_Date field that happened today.

Should it read &[FMP-CurrentDate]?

IMHO almost all functions are in brackets e.g. &NAMEOFFIELD=[FMP-Cookie] and so...

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.