I'm using a script that uses this code to tell me what today is...
What's the code for tomorrow?Code:var day=mydate.getDay()
I'm using a script that uses this code to tell me what today is...
What's the code for tomorrow?Code:var day=mydate.getDay()
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title></title> </head> <body> <script type="text/javascript"> var mydate=new Date(); var day=mydate.getDate(); mydate=new Date(mydate.getFullYear(),mydate.getMonth(),mydate.getDate()+1,mydate.getHours(),mydate.getMinutes(),mydate.getSeconds()); alert(mydate) </script> </body> </html>
Vic
God Loves You and will never love you less.
http://www.vicsjavascripts.org/Home.htm
If my post has been useful please donate to http://www.operationsmile.org.uk/
Code:var nextday = new Date(); nextday.setDate(nextday.getDate() + 1); nextday = nextday.getDay();
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanks
@vic, just out of curiosity, is there any particular reason that you got all parts of the date and only modifying one, than johns method of getting the one he wants to modify and modifying it?
"Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
Anime Views Forums
Bernie
Bookmarks