Axure not displaying the current day from [[Now.getDay()]]


#1

Can anyone tell me why Axure cannot display the current day using the [[Now.getDay()]] function?
Here is the super mini prototype and screenshots.

Thanks!
~ Meredith

Date Display Problem.rp (82.9 KB)


Axure calculates wrong date
#2

Hi Meredith!

It looks like [[Now.getDay()]] gets the value of the day of the week, rather than the date of the day:

I tested out using [[Now.getDate()]] instead and was able to generate a date of “14”, instead of a “5” for Friday.

I hope this helps!


#3

To chime in: the .getDay(), .getDate(), .getYear(), etc. are all methods of vanilla JavaScript’s new Date() class. If your searches for Axure help are fruitless, try searching for JS stuff! Since AxureScript is basically JQuery which is basically JavaScript, pretty much all the JS bells and whistles are available to you


#4

Thanks for the education everyone! I was using getDay instead of getDate!


closed #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.