Title: Start &#8211; End Date/Time range
Last modified: July 14, 2020

---

# Start – End Date/Time range

 *  Resolved [kervis](https://wordpress.org/support/users/kervis/)
 * (@kervis)
 * [6 years ago](https://wordpress.org/support/topic/start-end-date-time-range/)
 * hi, i test for use range with this
    [https://xdsoft.net/jqplugins/datetimepicker/#range](https://xdsoft.net/jqplugins/datetimepicker/#range)
 * but not work, use this code:
 *     ```
       jQuery(document).ready(function( $ ){
          jQuery(function(){
        jQuery('.date1 input[type=text]').datetimepicker({
         format:'DD/MM/YYYY h:mm a',
         onShow:function( ct ){
          this.setOptions({
           maxDate:jQuery('.date2 input[type=text]').val()?jQuery('.date2 input[type=text]').val():false
          })
         },
         timepicker:true
        });
        jQuery('.date2 input[type=text]').datetimepicker({
         format:'DD/MM/YYYY h:mm a',
         onShow:function( ct ){
          this.setOptions({
           minDate:jQuery('.date1 input[type=text]').val()?jQuery('.date1 input[type=text]').val():false
          })
         },
         timepicker:true
        });
       });
       });
       ```
   
 * thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstart-end-date-time-range%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Carlos Moreira](https://wordpress.org/support/users/carlosmoreirapt/)
 * (@carlosmoreirapt)
 * [6 years ago](https://wordpress.org/support/topic/start-end-date-time-range/#post-13120688)
 * The Pro version supports date ranges out of the box, without needing custom code:
   [https://cmoreira.net/date-time-picker-wordpress-plugin/](https://cmoreira.net/date-time-picker-wordpress-plugin/)
 * Using the method you used with the custom code would ignore all your settings,
   you would have to setup all options yourself in the code.
 *  Thread Starter [kervis](https://wordpress.org/support/users/kervis/)
 * (@kervis)
 * [6 years ago](https://wordpress.org/support/topic/start-end-date-time-range/#post-13123472)
 * 😮 good, thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Start – End Date/Time range’ is closed to new replies.

 * ![](https://ps.w.org/date-time-picker-field/assets/icon.svg?rev=2964043)
 * [Availability Datepicker – Booking Calendar for Contact Form 7 – Input WP](https://wordpress.org/plugins/date-time-picker-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/date-time-picker-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/date-time-picker-field/)
 * [Active Topics](https://wordpress.org/support/plugin/date-time-picker-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/date-time-picker-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/date-time-picker-field/reviews/)

## Tags

 * [gravity form](https://wordpress.org/support/topic-tag/gravity-form/)

 * 2 replies
 * 2 participants
 * Last reply from: [kervis](https://wordpress.org/support/users/kervis/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/start-end-date-time-range/#post-13123472)
 * Status: resolved