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 15-03-2026 Positive Validation code
Yesterday was 14/03/2026 Positive Validation code
Tomorrow 16/03/2026 Positive Validation code
Last month 15/02/2026 Positive Validation code
Next month 15/04/2026 Positive Validation code
Next year 15/03/2027 Positive Validation code
Last year 15/03/2025 Positive Validation code
Todays Date (dd/mm/yyy) Positive Validation code
Todays Date (mm/dd/yyy) Positive Validation code