예제 #1
0
 private string GetDatumNarozeni()
 {
     if (DatumNarozeni.HasValue)
     {
         return($" (* {DatumNarozeni.Value.Year})");
     }
     else if (!string.IsNullOrEmpty(Rc))
     {
         var suffix = Rc.Substring(0, 2);
         var year   = (Convert.ToInt32((DateTime.Now.Year - 18).ToString().Substring(2)) > Convert.ToInt32(suffix) ? "20" : "19") + suffix;
         return($" (* {year})");
     }
     return(string.Empty);
 }