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