Forum Discussion
DonnaWestwood
9 years agoCommunity Member
Javascript date format dd/mm/yy NOT dd/mm/yyyy - do I need to import a library?
I am developing a software simulation which uses dates/ calendars extensively. (a booking system) Some javascript has already been used in this project, for example system date, year, month, day of ...
OwenHolt
9 years agoSuper Hero
You can test it by changing this line:
if(year>724) {
to this
if(year>611) {
611 would stand for June 11th so your year variable should change to 18 (for 2018) to make it a future date since today is 6/12/17
Just be sure to change it back to 724 for July 24th after testing.