Sometimes people will ask how it is that we can have Axure RP spit out the date x amount of days in the future or past. Say, for example, you are prototyping a library website and you need to notify the user that the book they just checked out is due in a week. Only you don’t want to say “in a week”. You want it to actually spit out what the date will be seven days from today.
Thankfully, it is pretty easy to do this using the built-in functions in the “Edit Text” dialog you get when you click the “fx” button in the Case Editor.
Using this function you can set the text of a widget to [[Now.addDays(x)]]. I’ve chosen to use [[Now.addDays(LVAR1)]], because I am allowing the user to enter the amount of days in a Text Field widget.
When you want to go back-in-time, you would use [[Now.addDays(-LVAR1)]].
So the good news is now we can time travel safely from behind our desks…So, literally, where we’re going, we don’t need roads!
WARNING: RAPIDLY FLASHING SCREEN!
See It Live!
And check out the attached .rp file
Enjoy!
TimeTravel.rp (60.8 KB)