sorry for another question here,
I'm trying to get values from html input type date and time, but I seem to run into some issues and need some guidance from any of you.
What I'm trying to do here is, when any user selects the date, it will populate the value with the format "MM-DD".
For example,
<input type="date" name="departure_1" id="depature_1" />
<input type="date" name="arrival_2" id="arrival_2" />
The output should look something like:
Departure Date: 10-24 Arrival Date: 11-24
What I have figured out so far is, I can do something similar to below to change the date format, but I can't seem to think a way to implement this in a function and get what I'm looking for
var result = enteredDate.getMonth() + "" + enteredDate.getDate()
Any help would be greatly appreciated.