Newbies spacericker9k Posted May 5, 2006 Newbies Share Posted May 5, 2006 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 Link to comment Share on other sites More sharing options...
Martin Brändle Posted May 5, 2006 Share Posted May 5, 2006 (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 May 5, 2006 by Guest Link to comment Share on other sites More sharing options...
Newbies spacericker9k Posted May 5, 2006 Author Newbies Share Posted May 5, 2006 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 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6559 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 accountSign in
Already have an account? Sign in here.
Sign In Now