Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/07/2012, 08:23
Avatar de giovani_loera
giovani_loera
 
Fecha de Ingreso: mayo-2011
Ubicación: Tijuana
Mensajes: 225
Antigüedad: 13 años
Puntos: 21
Respuesta: No se Actualiza mis registros ingresados en vb.net 2008

Te paso un ejemplo

Código vb:
Ver original
  1. TimeSpan time=DateTime.Now - alert.Date;
  2. lblTrans.Content = string.Format("{0} D {1} hr {2} min",time.Days,  time.Hours.ToString("#0"), time.Minutes.ToString("#0"));

Siendo ' alert.Date ' de tipo Date, y este es el dato que traigo de la DB.

Espero que te sirva