Specifies both the rules on valid/invalid values (first/last date/time allowed), and also formatting options for how the date/time is displayed.
Note: This is not a real constructor, but just a description of the type of object that should be passed as
a parameter to some method(s), and/or the return value from some method(s).
In other words, the type exists only for documentation purposes, and you cannot call new _DateTimeTextBox.__Constraints()
See the dijit/form/_DateTimeTextBox.__Constraints reference documentation for more information.
To restrict to dates within 2004, displayed in a long format like "December 25, 2005":
{min:'2004-01-01',max:'2004-12-31', formatLength:'long'}
choice of long, short, medium or full (plus any custom additions). Defaults to 'short'
(format only) use 4 digit years whenever 2 digit years are called for