js yesterday date
var yesterday = new Date((new Date()).valueOf() - 1000*60*60*24);
js yesterday date
var yesterday = new Date((new Date()).valueOf() - 1000*60*60*24);
js yesterday date
var d = new Date();
d.setDate(d.getDate() - 1);
set a previous year to the current date in javascript
const d = new Date();
d.setFullYear(d.getFullYear()-1);
console.log(d.toDateString()); // "Fri Oct 04 2019"
get previous year in javascript
const currentYear = new Date().getFullYear(); // 2020
const previousYear = currentYear-1;
console.log(previousYear); // 2019
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