Returns: Boolean
Description: Makes the element require a date.
Return true if the value is a valid date. Uses JavaScript's built-in Date to test if the date is valid, and therefore does no sanity checks. Only the format must be valid, not the actual date, eg 30/30/2008 is a valid date.
DEPRECATION warning:
This method is deprecated and will be removed in version 2.0.0
.
Please don't use it, since it relies on the Date
constructor, which behaves very differently across browsers and locales. Use dateISO
instead or one of the locale specific methods (in localizations/ and additional-methods.js).
Example:
Makes "field" required and a date.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
|