How can I convert javascript time string of
var time="10:15:00";
to C# timespan property like:
public System.TimeSpan Hours { get; set; }
I'll pass it as JSON by using ajax call to MVC method. However, the type of property must be the same henve I'll only show the time with the format "hh:mm:ss" as timespan.