Hi
In below code i an getting above error on below line
Date of joining must be after date of birth.
Choose a date
MM/DD/YYYY
Choose a date
MM/DD/YYYY
Date of joining must be after date of birth.
Thanks
Ramco RamcoPosted Jun 27, 2024, 12:40 PM
Hi jayraj
Can u ple help . Below is my Directive
Thanks
Jayraj ChhayaPosted Jun 27, 2024, 12:33 PM
The error you are facing on the line is likely due to the way you are handling the date comparison validation in your Angular component.
To resolve this issue, ensure that the
appDateComparisondirective is correctly implemented to compare the date of joining (doj) with the date of birth (dob). Make sure the custom validator function associated withappDateComparisonis correctly validating the dates and setting the appropriate error if the condition is not met.Check the implementation of the
appDateComparisondirective and the custom validator function to ensure they are correctly comparing the dates. Additionally, verify that the form controlsdobanddojare correctly bound to the date inputs in the template.