Hi ppl, Can anyone tell me how Date of birth to age calculation can be done.
i.e: I have created a database for actors profile. In that i have a row that will have age of that actor. Usually in word-press i’ll enter actor’s date of birth in DB and it will automatically calculate the age for current year and will reflect the result in the front-end. Can this be done in Editor X, kindly help me with that!!!
Not well-versed myself but got this feedback from the Velo team.
You can use getCurrentItem() to store the DOB in a new variable. Then will be able to use the DOB to calculate the age of the person and there are example in Javascript here . Then you would need to set the text property of the Textbox to show the result of the calculation.
Thanks!!! that was helpfulll