"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:13**********************************@microsof t.com...
string sDateTime = "26/1/2005 10:18:30 AM";
and I need to get the same datetime with the following format
Wed, 26 Jan 2005 10:18:30 +0200
How can I format string to get the needed format
Not too sure about the +0200 at the end, but you can format the rest of it
like so:
string sDateTime = "26/1/2005 10:18:30 AM";
sDateTime = Convert.ToDateTime(sDateTime).ToString("ddd, dd MMM yyyy
HH:mm:ss");