click below
click below
Normal Size Small Size show me how
JavaScript Web Tools
| Question | Answer |
|---|---|
| Using a variable, how do you display today's date? | var today = new Date ( ); |
| Using a variable, how do you display a specific date, including year, month, day, hours, minutes, seconds? | var y2k = new Date (2000, 0, 1); // will display Jan 1 2000 |
| How do you get the month? | today.getMonth |