padmapriya patruni

padmapriya patruni

  • NA
  • 74
  • 117.8k

convert days to months

Oct 29 2015 8:07 AM
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)