G
Guest
Hi, misters
which the best method for get the difference (in days) of two dates. The
hour (hh:mm) don't mind, would be 00:00 for all dates.
1.)
fechaUno.Substract(fechaDos).Days
2.)
int desplazamientoFechaActual = fechaLaborable.DayOfYear -
fechaActual.DayOfYear;
3.) DateTime now = DateTime.Now;
DateTime seed = Convert.ToDateTime("2006/01/01");
TimeSpan diff = now - seed;
int result = diff.TotalDays;
4.) Another ??
Any help about it ? Thanks in advance. Greetings.
which the best method for get the difference (in days) of two dates. The
hour (hh:mm) don't mind, would be 00:00 for all dates.
1.)
fechaUno.Substract(fechaDos).Days
2.)
int desplazamientoFechaActual = fechaLaborable.DayOfYear -
fechaActual.DayOfYear;
3.) DateTime now = DateTime.Now;
DateTime seed = Convert.ToDateTime("2006/01/01");
TimeSpan diff = now - seed;
int result = diff.TotalDays;
4.) Another ??
Any help about it ? Thanks in advance. Greetings.