I am trying to get the time to the next "6:00:00", I am using moment:
let shiftEnd = moment("06:00:00", "HH:mm:ss")
console.log(shiftEnd.inspect())
It gets me the previous 6:00:00, the one with the same day as now()
.
moment("2017-07-31T06:00:00.000")
now()
is:
moment("2017-07-31T12:20:57.076")
What's the best way to get the next 6am that's not passed yet?