Beispiel #1
0
 public static DateTime CommonDate2DateTime(Mas.Schema.Common.Date d)
 {
     return(new DateTime(
                d.Year < 100 ? d.Year + 1 : d.Year,
                d.Month == 0 ? 1 : d.Month,
                d.Day == 0 ? 1 : d.Day
                ));
 }
Beispiel #2
0
 public static string CommonDate2IsoDateString(Mas.Schema.Common.Date d)
 {
     return($"{d.Year:D4}-{d.Month:D2}-{d.Day:D2}");
 }