let end: Date = new Date(); let h: string = "13"; let m: string = "20"; moment(end).set({ hour: parseInt(h, 10), minute: parseInt(m, 10) });
I am trying to set the time to an existing date. however, the doe described above does not set the time in a date. Time always comes like ... 00:00: ...
Any idea?
Thanks,
javascript datetime typescript momentjs
daehaai
source share