日期:2014-05-18 浏览次数:20461 次
string str = "11/8/2011 12:30 PM "; string result = Regex.Replace(str, @"(\d{1,2})/(\d{1,2})/(\d{4}).+", "$3-$1-$2"); Console.WriteLine(result);