12096e5
is a magic number which is 14 days in milliseconds.
var fortnightAway = new Date(Date.now() + 12096e5);
More Related Contents:
- new Date(2015,2,30) and new Date(‘2015-2-30’)
- How do I format a date in JavaScript?
- Calculate age given the birth date in the format YYYYMMDD
- How do I get the difference between two Dates in JavaScript?
- Convert UTC Epoch to local date
- How to validate date with format “mm/dd/yyyy” in JavaScript?
- How to subtract date/time in JavaScript? [duplicate]
- Calculate last day of month
- Javascript: how to validate dates in format MM-DD-YYYY?
- How to convert dd/mm/yyyy string into JavaScript Date object?
- Get time of specific timezone [duplicate]
- Get time difference between two dates in seconds
- How to check whether an object is a date?
- How to add/subtract dates with JavaScript?
- Javascript format date / time [duplicate]
- How to Convert any of the 5 Islamic (Hijri) Calendars’ Dates to any of 18 World Calendars without External Libraries or Complex Astronomical Formulas
- Get the weekday from a Date object or date string using JavaScript
- How can I remove time from date with Moment.js?
- JavaScript Detecting Valid Dates
- Stop javascript Date function from changing timezone offset
- How to get the day of the week from the day number in JavaScript?
- How to set Hours,minutes,seconds to Date which is in GMT
- How to properly add 1 month to current date in moment.js
- How to Convert Persian (Jalali) Dates to other 18 Calendar Dates in Javascript without External Libraries or Complex Astronomical Equations
- Loop through a date range with JavaScript
- javascript date + 7 days
- How to change Gregorian date to Persian date in JavaScript?
- How do I format a Javascript Date?
- Get today date in Google Apps Script
- moment.js isValid function not working properly