protected override string CutOffDate(string pesel) { var insDateFromPesel = new DateFromPesel(); var str = insDateFromPesel.GetPesel(pesel); var date = str.year + "-" + str.month + "-" + str.day; return(date); }
public override bool IsPeselValid(string pesel) { DateFromPesel dateFromPesel = new DateFromPesel(); var nice = dateFromPesel.GetPesel(pesel); CutOffDate(pesel); return(Checksum(pesel) && ValidateDate(nice.year, nice.month, nice.day)); }