My code is like this
 DateTime dt = new DateTime();
 dt=  DateTime.ParseExact("14/09/2017", "dd/MM/yyyy", CultureInfo.InvariantCulture);
I am expecting dt to have a format of dd/MM/yyyy but the output I am getting is in MM/dd/yyyy format.
This is the correct out put I am getting 9/14/2017 12:00:00 AM.
 Can anyone please point out what I am doing wrong here?
 
     
     
     
    