Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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()
  });
 
PREVIOUS NEXT
Tagged: #set #input #time #type #current #time #initialization
ADD COMMENT
Topic
Name
5+5 =