current time in javascript
new Date().toLocaleString();
>> "09/08/2014, 2:35:56 AM"
current time in javascript
new Date().toLocaleString();
>> "09/08/2014, 2:35:56 AM"
get time from date javascript
const handleTime = (dataD) => {
let data= new Date(dataD)
let hrs = data.getHours()
let mins = data.getMinutes()
if(hrs<=9)
hrs = '0' + hrs
if(mins<10)
mins = '0' + mins
const postTime= hrs + ':' + mins
return postTime
}
javascript get current time
let today = new Date();
let time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
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