I'm using timepicker and it requires a date object. From database I'm getting a time string like "17:00:00". How can I convert a time string like "17:00:00" into date object?
Edit I have already tried the solution in question suggested by Mike C, Alex K but in that question they are converting a date string into a date object and when I try to convert time string into date I get an invalid date error.