Click here to Skip to main content
15,888,059 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Quote:
Using your knowledge of functions, arrays and JavaScript date objects, create a JavaScript
program that gets the date from the user using a form as below and send it to a function called
dateUpdate(). For testing purposes, you are to use an alert to see if your function is working.
Your program should get the date from the user in the format YYYY-MM-DD. On clicking the
Send Update Date button, the function should display the output in an alert box as shown below.


What I have tried:

var now = new Date();
var month=
Posted
Comments
Dave Kreskowiak 28-Sep-22 18:27pm    
Did you have a question or a problem?

The assignment seems pretty clear: "Using YOUR knowledge of functions, arrays and JavaScript date objects, create a JavaScript program"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900