string s = "2.00:00:00"; // // Split string on spaces. // ... This will separate all the words. // string[] words = s.Split('.'); words[0] get the result : 2
string ts = "2.00:00:00"; string[] split = ts.(new Char [] {'.'}); if(split.length > 0) { Console.Write(split[0]); }
string newword = "2.00:00:00"; string cut= newword.Substring(0, 1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)