Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js date format

  const dubbleZero = parseInt('00');
  const time = new Date();
  const formatedDate = `${dubbleZero + time.getHours()}:${dubbleZero + time.getMinutes()}:${dubbleZero + time.getSeconds()}`;
  console.log(formatedDate);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #date #format
ADD COMMENT
Topic
Name
8+3 =