...Most options can be provided via data-attributes. An option can be converted to a data-attribute by taking its name, replacing each uppercase letter with its lowercase equivalent preceded by a dash, and prepending “data-date-” to the result. Methods are called on a datepicker by calling the datepicker function with a string first argument, followed by any arguments the method takes.