I have some problem for which I am unable to find the solution. Here is my code
string DateString = System.DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss tt");
string Format = "dd/MM/yyyy hh:mm:ss tt";
DateTime DT = DateTime.ParseExact(DateString, Format, CultureInfo.InvariantCulture);
string DTE = DT.ToString("dd/MM/yyyy");
The code is extracting an Error which I am pasting below. Please tell me what exactly is the problem (My System Date and Time has been set to 3/29/2018 like this and I don't want to change it at all) here is the error