I have a datetime picker, then I have ValueChanged event handler for it and a code that goes like this
DateTime date = DateTime::Parse(dtpDate->Text);
System::DateTime::Compare(date, System::DateTime::Today.Now);
but now its trhowing exception that said date is not valid I cant even open my form