i have a problem that i am saving the value in database DatetimePicker.Value.Day(which returns Int);
now i am getting this value on another form on
label.Text = DataGridViewName.Rows[0].Cells["ColumnName"] +"-"+System.DateTime.Now.ToString("dd-MM-yyyy");
now i want to compare the value of label.Text with current date ... so i have to convert the label.text into datetime
DateTime DueDate = DateTime.ParseExact(Label.Text, "dd-MM-yyyy",null);
OR
Convert.ToDatetime(label.text);
but both conversion gives me error of String is not Valid and geirgian calender ERROR i cannot understand what to do