Discover how to use Axure's .addYears(), .addMonths(), .addDays(), and more methods to add or subtract values from a date variable, in order to get a future or past date.
- Axure has some helpful methods we can use…to manipulate dates.…So if we've got a particular date…that we're working with in our prototype…and we want to get another date that's some…number of days into the future or the past,…we would be able to get that dynamically.…I've got a pretty simple page set up…in this adjusting dates exercise file…so that we can see how this works.…Right now all I have are a few text labels…over here, and I've also got this piece…of text, which is set up with an OnLoad event.…When the text loads up, it will set the text…to be equal to the now variable, so it's…going to show the current date and time.…
When we preview, we can see that that's…what we've got.…We've got the date and time of right now.…Let's say that in our prototype,…we needed to show a date that was…two days into the future.…I'll just make a copy of this text label here,…and drag it down, and then I'll double click…to edit this set text action.…I'll click on the function button, and then…what I'm going to do is tack on a date method…
- Using variables in Axure
- String methods in Axure
- Truncating text strings
- Formatting dates and times
- Setting up a looping animation
- Setting up a responsive background image
- Positioning widgets in the browser
- Repeater and item properties
Skill Level Advanced
1. Widget Properties
3. Dates and Times
4. Window Properties
5. Repeater and Item Properties
6. Global Variables
Global variables2m 14s
Using plugins on Axure Share2m 49s
8. When Things Go Wrong
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.