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
javascript date today dd mm yyyy
var dateString = "20120515";
var year = dateString.substring(0,4);
var month = dateString.substring(4,6);
var day = dateString.substring(6,8);
var date = new Date(year, month-1, day);
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