parse string time to time c# code example
Example: string to datetime c#
DateTime.TryParse(stringDate, out DateTime date);
//date variable type is DateTime
DateTime.TryParse(stringDate, out DateTime date);
//date variable type is DateTime