Calculate Retirement Date after 60 years of Birth Date

Posted by Ganeshjoshi under JavaScript on 5/22/2013 | Points: 10 | Views : 3813 | Status : [Member] | Replies : 1
hello Friends,

I am selecting a birth date from datepicker and i want to calculate retirement date after 60 years on the basis of birth date.

plz provide me appropriate solution for my problem

Thanks & Regards
EmailId -


Posted by: Raj.Trivedi on: 5/22/2013 [Member] [MVP] Starter | Points: 25

Hello Ganesh

Please check this

Take a Datetime picker.

Take a Button and a Label

On button click event write this code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RetirementCalculationAge
public partial class Form1 : Form
public Form1()

private void btnCalc_Click(object sender, EventArgs e)
DateTime dt = Convert.ToDateTime(dtDate.Text);
DateTime dtnow = dt.AddYears(60);
string strDate = dtnow.ToString("dd/MM/yyyy");
label1.Text = Convert.ToString(strDate);


"Sharing is Caring"
Please mark as answer if your Query is resolved

Ganeshjoshi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response