DIGIFORMS
Digiforms Designer Documentation
 
 
 
 
 
 
Help by samples
 
 
 
Capture or output data in a defined layout
 
Extensible Markup Language
datecheck.jsp
util/calendar
Use
Use datecheck.jsp to test if a provided date is valid
The dateCheck.jsp can be used to validate date formats on input fields. It can be invoke using date/format as parameters, or the date can be specified as components (day/month/year)
To parse a date from string, using a specific format, use the following parameters:
  • date
  • format
    Ex. DD-MM-YYYY
Example: https://server/digiforms/util/calendar/datecheck.jsp?date=26-07-1972&format=DD-MM-YYYY
<?xml version="1.0" encoding="ISO-8859-1"?> <datecheck message="" valid="true" day="26" month="1" year="1972"/>
response, xml
To check a date from specific components, use the following parameters:
  • day
  • month
  • year
Example ( invalid date ): https://server/digiforms/util/calendar/datecheck.jsp?day=29&month=2&year=2018
<?xml version="1.0" encoding="ISO-8859-1"?> <datecheck message="Value 29 for dayOfMonth must be in the range [1,28]" valid="false" day="29" month="2" year="2018"></datecheck>
response, xml
Example ( valid date ): https://server/digiforms/util/calendar/datecheck.jsp?day=28&month=2&year=2018
<?xml version="1.0" encoding="ISO-8859-1"?> <datecheck message="" valid="true" day="28" month="2" year="2018"></datecheck>
response, xml