Calculo de la edad - private void OnBeforePrint(object sender System.Drawing.Printing.PrintEventArgs e String fulledad = String.Empty DateTime

Calculo de la edad - private void OnBeforePrint(object...

This preview shows page 1 out of 1 page.

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { String fulledad = String.Empty; DateTime fecnanc = System.Convert.ToDateTime(this.gpafecnac.Text); DateTime y = DateTime.Now; TimeSpan total = y - fecnanc; double anos = total.Days / 365.25; double resultado = Math.Floor(anos); fulledad = Convert.ToInt32(resultado).ToString().Trim() + " Años \\ "; TimeSpan total1 = y - fecnanc;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture