<commit_before>Methods
=======

Methods are called on a datepicker by calling the ``datepicker`` function with a string first argument, followed by any arguments the method takes

::

    $('.datepicker').datepicker('method', arg1, arg2);


destroy
-------

Arguments: None

Remove the datepicker.  Removes attached events, internal attached objects, and added HTML elements.

*Alias: remove*


show
----

Arguments: None

Show the picker.


hide
----

Arguments: None

Hide the picker.


update
------

Arguments:

* date (String|Date, optional)

Update the datepicker with given argument or the current input value.

If ``date`` is provided and is a Date object, it is assumed to be a "local" date object, and will be converted to UTC for internal use.

::

    $('.datepicker').datepicker('update');
    $('.datepicker').datepicker('update', '2011-03-05');
    $('.datepicker').datepicker('update', new Date(2011, 2, 5));

To reset the datepicker and clear the selected date, pass an empty string with ``update``:

::

    $('.datepicker').datepicker('update', '');


setDate
-------

Arguments:

* date (Date)<commit_msg>Add notes about multiple dates and examples for update method<commit_after>Methods
=======

Methods are called on a datepicker by calling the ``datepicker`` function with a string first argument, followed by any arguments the method takes

::

    $('.datepicker').datepicker('method', arg1, arg2);


destroy
-------

Arguments: None

Remove the datepicker.  Removes attached events, internal attached objects, and added HTML elements.

*Alias: remove*


show
----

Arguments: None

Show the picker.


hide
----

Arguments: None

Hide the picker.


update
------

Arguments:

* date (String|Date|Array, optional)
* date (String|Date, optional)
* ...

Update the datepicker with given arguments or the current input value.
The arguments can be either an array of strings, an array of Date objects, multiples strings or multiples Date objects.
If ``date`` arguments are provided and are Date objects, it is assumed to be "local" Date objects, and will be converted to UTC for internal use.

::

    $('.datepicker').datepicker('update');
    $('.datepicker').datepicker('update', '2011-03-05');
    $('.datepicker').datepicker('update', '2011-03-05', '2011-03-07');
    $('.datepicker').datepicker('update', new Date(2011, 2, 5));
    $('.datepicker').datepicker('update', [new Date(2011, 2, 5), new Date(2011, 2, 7)]);

To reset the datepicker and clear the selected date, pass an empty string with ``update``:

::

    $('.datepicker').datepicker('update', '');


setDate
-------

Arguments:

* date (Date)
{'fraction_non_alphanumeric': 0.14557202584568604, 'fraction_numerical': 0.02280501710376283, 'mean_word_length': 3.8740740740740742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4070685', 'n_tokens_mistral': 799, 'n_tokens_neox': 713, 'n_words': 298}