i have a query string with format MM/DD/YYYY
I am using it in c# like
DateTime d = Request.QueryString["dateTime"].toString();
its giving me a lot of error saying the date time format is not recognized. If i manually change the datetime in browser address bar (query string) to dd/mm/yyyy then the program just works fine.
I cannot change the query string, is there a way in c# to get it from browser and then convert into date like dd/mm/yyyy please?
edit: the query string:
http://localhost:49543/HM/Admin/ViewDetails.aspx?OrderNo=10&DateCreated=08/30/2010
so you can see the datecreated part is in MM/DD/YYYY format. I am not able to grab it from c#. If I manually change that to 30/08/2010, it works