get current formatted time in javascript
const date = new Date(); // get the current date
console.log(date.toLocaleTimeString("en-us", {timeStyle: "short"})); // time
get current formatted time in javascript
const date = new Date(); // get the current date
console.log(date.toLocaleTimeString("en-us", {timeStyle: "short"})); // time
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);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us