I am running some checks on a value that is passed into a timePicker on my react-native app, and I want to take a time value like 14:29, which is coming in as a string, and turn that into a value that will pass a moment(val).isValid() check.
How can I, for instance, just take today's date, but set the time to be this value of 14:29?
I tried this but it errors out:
let val = '14:29';
this._value = moment(new Date()).startOf(val);