19/02/2008, 09:57
|
| | Fecha de Ingreso: enero-2008
Mensajes: 65
Antigüedad: 16 años, 10 meses Puntos: 0 | |
Re: Manejo de DateTime en C# DateTime oldDate = new DateTime(2002,7,15);
DateTime newDate = DateTime.Now;
// Difference in days, hours, and minutes.
TimeSpan ts = newDate - oldDate;
// Difference in days.
int differenceInDays = ts.Days;
Console.WriteLine("Difference in days: {0} ", differenceInDays); |