date time picker

Component ID

1679556

Component name

date time picker

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

580

Component created

Component changed

Component body

This modules enables up the jquery ui datetimepicker library for you.

How to use it?

1. Download and enable this module.
2. Add the library in your module/theme

drupal_add_library('datetimepicker', 'jquery-ui-timepicker'); 

There are two options now.
Either you just add the timepicker or datetimepicker class to your input field or you can wrtie the JS yourself (depending on the date/time format you need).
3. Add the Javascript to your field

 $( ".MY_DATETIMEFIELD" ).datetimepicker({ 
        dateFormat: "yy-mm-dd" , 
        timeFormat: 'hh:mm',
      });
 $( ".MY_TIMEFIELD" ).timepicker({ 
        dateFormat: "yy-mm-dd" , 
        timeFormat: 'hh:mm',
      });

4. Be happy and up to date with the latest jquery ui datetimepicker.