Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は2つの文字列を取得します。弦aと弦b。
string a="\n 17 Oct \n \n 2013"; string b=//I get UTC time in string format
これを日時形式の「2013-10-17 00-00-00.000」に変換する必要があります。どうすればこれを達成できますか?
おそらく最もクリーンな方法は、カスタム IFormatProvider で DateTime.TryParse() を使用するか、DateTime.TryParseExact() を使用することです。
http://msdn.microsoft.com/en-us/library/9h21f14e.aspx