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 22-09-2026 Positive Validation code
Yesterday was 21/09/2026 Positive Validation code
Tomorrow 23/09/2026 Positive Validation code
Last month 22/08/2026 Positive Validation code
Next month 22/10/2026 Positive Validation code
Next year 22/09/2027 Positive Validation code
Last year 22/09/2025 Positive Validation code
Todays Date (dd/mm/yyy) Positive Validation code
Todays Date (mm/dd/yyy) Positive Validation code