2

I am using the standard jQuery datepicker in Drupal 7 and I would like to change how it saves and displays dates. Instead of displaying 10/11/2013, I would like it to display as November 10, 2013 for clarity. Is it possible to accomplish this?

2

To change how the datepicker displays in your content entry form, go to Structure > Content types > YourType > Manage fields > YourField. Expand the section labeled, "MORE SETTINGS AND VALUES", then select the desired date format from the "Date entry options" select list.

1

Check out this

 $(function(){
        $("#to").datepicker({ dateFormat: 'yy-mm-dd' });
        $("#from").datepicker({ dateFormat: 'yy-mm-dd' }).bind("change",function(){
            var minValue = $(this).val();
            minValue = $.datepicker.parseDate("yy-mm-dd", minValue);
            minValue.setDate(minValue.getDate()+1);
            $("#to").datepicker( "option", "minDate", minValue );
        })
    });

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.