Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6778 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

Posted (edited)

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
  • Newbies
Posted

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

This topic is 6778 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.