Problem 15. After 10 years - Въпрос, относно валидацията на въведената рожденна дата
Здравейте, Някои може ли да предложи решение, относно валидацията на въведената рожденна дата?
Ето го и кодът който съм написал към тази задача:
using System;
class AgeAfter10Years
{
    static void Main()
    {
        Console.WriteLine("Enter a date of your birthday in format(dd.mm.yy)");
        DateTime myBirth = DateTime.Parse(Console.ReadLine());
        DateTime currentTime = DateTime.Now;
        int myAge = currentTime.Year - myBirth.Year;
        if (myBirth.Month == currentTime.Month && myBirth.Day == currentTime.Day)
        {
            Console.WriteLine("It,s your birthday!");
        }
        else if (myBirth.Date > currentTime.Date)
        {
            Console.WriteLine("That is in the furute!");
        }
        
        else
        {
            Console.WriteLine("Now you are on {0} years old.", myAge);
            Console.WriteLine("After 10 years you will be on {0} years old!", myAge + 10);
        }
        Console.ReadLine();
    }
}