javascript get current date yyyy-mm-dd
var todayDate = new Date().toISOString().slice(0, 10);
console.log(todayDate);
Run code snippet
javascript get current date yyyy-mm-dd
var todayDate = new Date().toISOString().slice(0, 10);
console.log(todayDate);
Run code snippet
mm dd yyyy how to get date in this format in javascript
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!
var yyyy = today.getFullYear();
today = mm + '/' + dd + '/' + yyyy;
document.write(today);
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