任何帮助都会得到赞赏!
谢谢!
答案 0 :(得分:-1)
String value =" Thu Mar 02 1995 21:31:00,2245107&#34 ;;
String[] token = value.Split(',');
String[] datetime = token[0].Split(' ');
String timeText = datetime[4]; // The String array contans 21:31:00
DateTime time = Convert.ToDateTime(timeText); // Converts only the time
Console.WriteLine(time.ToString("HH:mm:ss"));