I have an input line HH: MM: SS, e.g. 15:43:13,
now i want to convert it to datetime but save only hour / time without date etc.
Is it possible?
eg
string userInput = 15:43:13; DateTime userInputTime = Convert.ToDateTime(userInput);
will give me the full date including year etc. is there any way to convert it to HH: MM: SS without substring / substring?
thanks
source share