<datevalidator>

JavaScript: lz.datevalidator
extends <basevalidator> » <view> » <node> » lz.Eventable »

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
format string String mm/dd/yyyy read/write
   
invaliddateErrorstring string String Please enter a valid date. read/write
   
invalidformatErrorstring string String Please input the date in a valid format. read/write
   
invalidmonthErrorstring string String Please enter a month between 1 and 12. read/write
   
invalidyearErrorstring string String Please enter a year between 0 and 9999. read/write
   
trim boolean boolean true read/write
   

Methods

doValidation()
datevalidator.doValidation(val);
Parameter Name Type Description
val    

getDate()
datevalidator.getDate(value);
Parameter Name Type Description
value    

getlastdate()
datevalidator.getlastdate(value);
Parameter Name Type Description
value    

getlastdayofFeb()
datevalidator.getlastdayofFeb(value);
Parameter Name Type Description
value    

getMonth()
datevalidator.getMonth(value);
Parameter Name Type Description
value    

getYear()
datevalidator.getYear(value);
Parameter Name Type Description
value    

isInt()
datevalidator.isInt(value);
Parameter Name Type Description
value    

isValidDate()
datevalidator.isValidDate(value);
Parameter Name Type Description
value    

isValidLength()
datevalidator.isValidLength(value);
Parameter Name Type Description
value    

isValidMonth()
datevalidator.isValidMonth(value);
Parameter Name Type Description
value    

isValidYear()
datevalidator.isValidYear(value);
Parameter Name Type Description
value    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy