DEV Community

Discussion on: JavaScript One-Liners That Make Me Excited

Collapse
 
sebastienbarre profile image
Sebastien Barre

Please don't use code in production that multiplies 86400000 (24*60*60*1000) for computing dates; date/time is way more complicated than that, you will shoot yourself in the foot. Use a library.