How to choose two dates (date range) from text field?

Choose two dates (date range) from text field





<script src=””></script>
<script src=’’></script>
<script src=’’></script>
<script src=’’></script>
<link rel=’stylesheet’ href=’’>

<script type=”text/javascript”>
$(document).ready(function() {
format: ‘DD/MM/YYYY’,
getValue: function() {
if ( $(‘#date-from’).val() && $(‘#date-to’).val() ) {
return $(‘#date-from’).val() + ‘ to ‘ + $(‘#date-to’).val();
else {
return ”;
setValue: function(daterangepicker, from, to) {

<form action=”” method=”post”>
<span id=’date-range-filter’>
From: <input id=’date-from’>
To: <input id=’date-to’>
<input type=”submit” name=”submit” value=”Submit”>

Leave a Reply

Your email address will not be published. Required fields are marked *