[Solved] How to get time only with date and time in C# [closed]


You can parse your String as DateTime like

var text = "24/02/2017 13:57:53";
var dateTime = DateTime.Parse(text);

And then you can access the time like

var time = dateTime.TimeOfDay;

0

solved How to get time only with date and time in C# [closed]