How to convert string to time and compare with current time?

That doesn’t convert it to time. That converts it to date and back to string.

The correct solution is TimeSpan.Parse