Web Development with jQuery®

(Elliott) #1

Appendix O (^) ❘ 597
DATEPICKER UTILITIES
METHOD DESCRIPTION RETURN
VALUE
$.datepicker
.formatDate(
format,
date,
options
)
Formats a date into a string value with a
specifi ed format. For the format
argument, see “Format Options.” The
optional options argument can be provided
with an object literal of settings that include
the dayNamesShort, dayNames,
monthNamesShort, or monthNames options.
String
$.datepicker
.iso8601Week(date)
Determines the week of the year for a given
date: 1 to 53.
Number
$.datepicker
.noWeekends
Used to set the beforeShowDay function
with a predefi ned function that excludes
weekends.
Function
$.datepicker
.parseDate(
format,
value,
options
)
Extracts a date from a string value with a
specifi ed format. For the format option, see
“Format Options.” The optional options
argument can be provided with an object
literal that includes the shortYearCutoff,
dayNamesShort, dayNames,
monthNamesShort, or monthNames options.
Date
$.datepicker
.setDefaults(options)
Changes the default settings for all
Datepickers. For the options argument,
see “Datepicker Options.”
Datepicker
FORMAT OPTIONS FOR $.datepicker.formatDate()
OPTION DESCRIPTION
d Day of the month with no leading zero
dd Day of the month with leading zero
o Day of the year (no leading zeros)
oo Day of the year (three digit)
D Day name short
DD Day name long
continues
http://www.it-ebooks.info

Free download pdf