Validations
Following are some of the date validations.
  • First seven rows have date printed inside a td element.
  • Eighth and ninth rows have dates inside the text box.
  • In ninth row the text box is read only.
  • The format of date in first row and ninth row are different from others.
Today is 29-07-2026 Positive Validation code
Yesterday was 28/07/2026 Positive Validation code
Tomorrow 30/07/2026 Positive Validation code
Last month 29/06/2026 Positive Validation code
Next month 29/08/2026 Positive Validation code
Next year 29/07/2027 Positive Validation code
Last year 29/07/2025 Positive Validation code
Todays Date (dd/mm/yyy) Positive Validation code
Todays Date (mm/dd/yyy) Positive Validation code