You need to sign in to do that
Don't have an account?
Auto Populate Date of birth by age In Lightning Component
When i input age in lightning input,date of birth will be auto populate with 1 jan of the year
For example -when i set 2 in years the age,date of birth will be 2 jan 2017![User-added image](/forums/servlet/rtaImage?eid=9062I000000g8mW&feoid=Body&refid=0EM2I000000gDTI)
For example -when i set 2 in years the age,date of birth will be 2 jan 2017
Find the below code:
.cmp file controller.js
Let me know if you have any doubt.
Thanks,
Nitish