Well, Im trying to create a function to dispaly how many months - days have passed since a project started, I can know the days, but how can I know how many months????
Here is the code to get the days
this returns 42 days, but I need something that returns 1 month 12 days, is there a way to do this, or does anyone has any ideas???
Here is the code to get the days
C#:
DateTime Uno = new DateTime(2004,01,01);
DateTime Dos = new DateTime(2004,02,12);
TimeSpan xx = Dos - Uno;
double yy = xx.Days;
this returns 42 days, but I need something that returns 1 month 12 days, is there a way to do this, or does anyone has any ideas???