View Single Post
  #3 (permalink)  
Old April 4th, 2005, 02:25 PM
mehdi62b mehdi62b is offline
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

or try this,
Code:
CultureInfo cf=new CultureInfo("en-US");
//yourString is according to en-US format
//if not you will recieve FormatException
DateTime dt=DateTime.Parse(yourString,cf);
//then you can convert every DateTime to string
//according to the culture
string sdt=dt.ToSting(cf);
HtH.

_____________
Mehdi.
software student.
Reply With Quote