New Year's Eve (December 31) is the last day of the year.
Calculating...
New Year's Eve 2030: Tuesday, December 31, 2030
New Year's Eve (December 31) is the last day of the year.
The number of days is calculated by taking today's date and subtracting it from New Year's Eve 2030 (Tuesday, December 31, 2030). The math uses midnight-to-midnight UTC day boundaries so the result does not change based on your time zone or the time of day. One "day" is exactly 86,400 seconds.
Math.round((new Date(2030, 11, 31) - new Date()) / 86400000). This gives the number of whole days until New Year's Eve 2030.Also useful: Day of the Year Calculator · Unix Timestamp Converter