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.

Script for search within a date range

Featured Replies

Hi Everyone!

I have two global fields of type 'date', that are used to input two dates from the user. I needed a script that will take these two dates and perform a find operation so that I get all the records within these date ranges inputted by the user.

The problem I am running to is that I am not able to put "field1...field2" in the date field in find mode.

Thanks

  • Author

I am using 'Insert Calculated Result". My calculation is ->

SearchDate1 & "..." & SearchDate2

But it is putting strange numbers like "731774...731778" into the date field.

Did you read the link? You need DateToText(datefield) as well. Dates are internally stored as numbers and must be converted to text in versions lower than 7.

  • Author

Found the solution (by Audiofreak) after searching some more b4 I would give up, in the forums.

The soution was that the dates had to be first turned into text, using the function dateToText().

so, my calculation will be :(

dateToText(searchDate1) & "..." & dateToText(SearchDate2)

This worked. Thanks!

The url for that thread is:

http://www.fmforums.com/threads/showflat...=true#Post98713

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.