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.

fmxslt:get_date()

Featured Replies

  • Newbies

i have a db that i'd like to search by date but i dont want an edit box in which the user freely enters a date. i want the date seach field to be 3 radio buttons. the values would be a)search the last month b)search the last 2 months and 3)search the last year

i'm using fmxslt:get_date() and trying to manipulate the date so it reflects the 3 choices. is there a way i can manipulate the date i get with fmxslt:get_date() to do what i want? does anybody have any other ideas on how i can do this? thanks

Yes, there is a way.

Here an example to calculate a date for say, 30 days ago:










  

      

        

      

      

        

      

    



You may figure out from the CWP guide, pp. 72-74 how the other calculations may work.

Edited by Guest

  • Author
  • Newbies

nice!!! thanks so much!!!

i'm new to xsl templates. your code was the small tutorial i've been looking for. i may have more questions about this as i keep working on it

again...thanks so much

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.