Get Date Input Value Javascript Array Methods W3schools