javascript - Displaying the name of tomorrow (ie. Monday) -
An easy way to display tomorrow's day name?
So by now I am able to do this PHP (see below) and in today for JavaScript but for tomorrow I am having trouble?
Javascript for today
var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday ", "Friday Saturday"]; Var Today = New Date (); Document.write (day [today.getDay ()]);
PHP version
resonance date ("L", strontem ("+ 1 day"))
Is this an easy way to do this?
I have seen many stack overflow questions about this but they all seem very incredible and complex!
Your javascript looks good, except that you only print today Are there.
, "Saturday"]; Var Today = New Date (). GetDay (); Document.write (day [(today + 1)% 7]);
Comments
Post a Comment