This project teaches how to concatenate two date objects into one. We created a few static files, with html and js. Our index page:
- displays a form
- displays date and time selection components
- catches their payload when submiting them
- extracts the date from the first param
- extracts the time from the second param
- concatenates both in a variable
This solution is usefull not only when using date and time selection in a form, but also when we want to extract date and time from different date objects and turn them into one
To run this project, you just need clone the repo to your local machine and run the index.html file with your browser
Open your terminal and navigate to folder you want to place the project
cd Documents/projects
clone the repository
git clone https://github.com/mstarkRules/concatenate-datetime-js.git