Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

JS get min date

let maxDate = new Date(8640000000000000);
let minDate = new Date(-8640000000000000);

console.log(new Date(maxDate.getTime()).toString());
console.log(new Date(maxDate.getTime() - 1).toString());
console.log(new Date(maxDate.getTime() + 1).toString()); // Invalid Date

console.log(new Date(minDate.getTime()).toString());
console.log(new Date(minDate.getTime() + 1).toString());
console.log(new Date(minDate.getTime() - 1).toString()); // Invalid Date
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript maximum date 
Javascript :: react detect screen size 
Javascript :: get all div elements javascript 
Javascript :: prodigy math game add item by id 
Javascript :: is react case sensitive 
Javascript :: fs.unlink 
Javascript :: js delete object in dict 
Javascript :: remove console log in production react 
Javascript :: open a html file using js 
Javascript :: js check if objects have same values 
Javascript :: get the value of a checkbox jquery 
Javascript :: converting json to javascript object 
Javascript :: vue print date 
Javascript :: react native scrollview full height 
Javascript :: chrome is not defined 
Javascript :: deep copy object/array 
Javascript :: get date javascript format 
Javascript :: for in object javascript 
Javascript :: js date now format 
Javascript :: get all local storage 
Javascript :: how to save cookie in JavaScript 
Javascript :: electronjs npm start in full screen 
Javascript :: ionic angular change page route 
Javascript :: how to right plain text format file in node js 
Javascript :: jquery trigger event when scroll to div 
Javascript :: how to reverse a string in javascript 
Javascript :: remove all white space from text javascript 
Javascript :: mongoose find and update prop 
Javascript :: trunc number javascript 
Javascript :: create module with routing by angular 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =