I have a Sharepoint list item with a date field. When I read the value for the item it gives me in format of MM/DD/YYYY. But my local machine is having different DateTime format as DD/MM/YYYY. So while parsing to DateTime either it changes the value or thows exception as Invalid DateTime.
DateTime dt = Convert.ToDateTime(item["DateTime"]);
How can I get the DateTime format for the field?
Thanks in advance.