我有一个字符串,其中写着"12/1/2011",在英语(美国)语言环境下,我的当前机器语言环境是英语(英国),对应的日期格式为"dd/mm/yyyy"。如何将"12/1/2011"转换为"1/12/2011"呢?我尝试过以下格式。
System.DateTime.Parse(result,System.Threading.Thread.CurrentThread.CurrentCulture)
.ToString(System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern)
但是我无法看到任何输出.
-Lokesh。