Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
date calculation in visualforce form
You can use folmula filed for that. Refer following link
http://forceguru.blogspot.com/2011/05/calculating-age-from-birth-date.html
If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.
If it is a Date field then
Integer age = Integer.valueOf(Account.PersonBirthDate.daysBetween(System.today())/365.2425);
@vijit Capgemini Developer
You can use folmula filed for that. Refer following link
http://forceguru.blogspot.com/2011/05/calculating-age-from-birth-date.html
If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.
http://infallibletechie.blogspot.in/2013/02/age-calculation-using-apex-and.html
If it is a Date field then
Integer age = Integer.valueOf(Account.PersonBirthDate.daysBetween(System.today())/365.2425);
@vijit Capgemini Developer