Flatpicker Plugin

See How To Use Flatpickr


HTML Code

							
<input class="flatpickr flatpickr-input active" type="text" placeholder="Select Date.." data-id="datetime" readonly="readonly">
							
						

Javascript Code

							
	{
		altInput: true,
		altFormat: "F j, Y",
		dateFormat: "Y-m-d",
	}
							
						

For more information please check official site for detailed technical explanation.