User283571144 posted
Hi nagaraji,
As far as I know, the ToString method uses current culture information about DateTime format.
If you use the ParseExact to convert the string back to the datatime, it may not recognized as a valid DateTime format.
I suggest you could try below codes:
txt_AssessmentEndDate.Text = Convert.ToDateTime(DateTime.Now).ToString("MM/dd/yyyy", CultureInfo.InvariantCulture);
DateTime AssessmentEndDate = DateTime.ParseExact(txt_AssessmentEndDate.Text, "MM/dd/yyyy", CultureInfo.InvariantCulture);
Best Regards,
Brando