public string[] Split(params char[] separator);
View Code
1 static void Main(string[] args) 2 { 3 string str = "2012年10月05日"; 4 string[] strs = str.Split(new char[] {'年','月','日'}); 5 Console.WriteLine(string.Join(" ",strs)); 6 Console.ReadKey(); 7 8 //This code example displays the following: 2012 10 05 9 }