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 :: get all classes of element jquery 
Javascript :: js change button text 
Javascript :: aos js cdn 
Javascript :: angular add font 
Javascript :: js minifier api 
Javascript :: firebase react router page not found on page refresh 
Javascript :: Get day first 3 letters name js 
Javascript :: react toggle boolean state 
Javascript :: jquery id click 
Javascript :: js history back 
Javascript :: activeClassName react router 
Javascript :: bootstrap multiselect change value 
Javascript :: set data attribute with a string jquery 
Javascript :: eof while parsing 
Javascript :: stop from from refresching page react 
Javascript :: angular contains both .browserslistrc and browserslist 
Javascript :: Javascript push a key value pair into a nested object array 
Javascript :: angular call function on option select 
Javascript :: loop array and check if value matches in js 
Javascript :: async storage has been extracted from react-native core 
Javascript :: how to set/get cookie in JavaScript 
Javascript :: ajax uploading progress 
Javascript :: get current date + 1 js 
Javascript :: javascript check if number is integer 
Javascript :: Use History React Router v6 app 
Javascript :: componentdidupdate in hooks 
Javascript :: drawer navigation set width react native 
Javascript :: get ip of user in node js 
Javascript :: array contains multiple js 
Javascript :: get monitor width javascript 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =