Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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));
        }