5
Answers

convert days to months

hi all
 
i have the problem regarding  convert days to months plz help me
 
this is code
 
DateTime CurrentDate = DateTime.Now;
DateTime dateOfJoin = (DateTime)employeDetails.DateOfJoin;
TimeSpan ts = CurrentDate - dateOfJoin;
int days= ts.Days;
 i need to show this days  in months
 
plz help me 
 

Answers (5)