This code syntax works with Chrome & Safari, but not with Firefox.
I think it could be to do with the date format(dd-mmm-yyyy).
How do I get all 3 browsers to work with this date format?
var weekday = new Date('14-Mar-2018').getDay();
This code syntax works with Chrome & Safari, but not with Firefox.
I think it could be to do with the date format(dd-mmm-yyyy).
How do I get all 3 browsers to work with this date format?
var weekday = new Date('14-Mar-2018').getDay();