Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get formatted time

  const dubbleZero = parseInt('00');
  const time = new Date();
  const formatedDate = `${dubbleZero + time.getHours()}:${dubbleZero + time.getMinutes()}:${dubbleZero + time.getSeconds()}`;
  console.log(formatedDate);
 
PREVIOUS NEXT
Tagged: #js #formatted #time
ADD COMMENT
Topic
Name
7+9 =