I have form that use daterangepicker
url : https://github.com/dangrossman/daterangepicker
I was able to attach daterangepicker into my form with this simple script.
script //Date range picker $('.daterp').daterangepicker(); /script and just add class to my form.
class="form-control daterp" so it will be
<input type="text" name="start_date" style="width: 100%;" required="" class="form-control daterp" id="id_start_date"> when I click submit its give me like 07/29/2018 - 07/29/2018 submitted to my database.
that not what I need.
imagine my database table like this
#table shift +---------------+---------------+ | start | end | +---------------+---------------+ | 2018-01-01 | 2018-01-05 | | 2018-01-08 | 2018-01-14 | | .... | .... | +---------------+---------------+ What I need when I click submit on my form field with value 07/29/2018 - 07/29/2018
07/29/2018 is going to start
and
07/29/2018 is going to end
but with only single form field
how to do that?...
thank you!