One button for going to one of two layouts based on date
I'm trying to setup one button that will go to one of two layouts based on the date. What function could I use for this?
If the current date is > 7/7/2014 go to layout 1. If the current date is > 7/9/2014 go to layout 2.
I know how to get current date and time and have put that in other scripts but this one eludes me. I thought about using or but I don't think that will work. I can set it up with a button for each layout but I it is far less cluttered with one button.