Answers for "how to set input of time type to current time on initialization"

0

how to set input of time type to current time on initialization

this.createForm.patchValue({
    date: new Date(),
    time: new Date().getHours() + ':' + new Date().getMinutes()
  });
Posted by: Guest on December-17-2020

Code answers related to "how to set input of time type to current time on initialization"

Code answers related to "Javascript"

Browse Popular Code Answers by Language