all InfoSec news
Powerful Date tricks in JavaScript that don't require any external libraries
DEV Community dev.to
Imagine you have a pet project, and its feature requires a few date-time calculation functions. However, it's too small, and you don't want to install additional dependencies. Or maybe your client doesn't want to use libraries due to security concerns or performance optimization. Or simply, you don't want to decide between moment.js, dayjs, or date-fns. Then this article is for you. Why not try plain JavaScript?
1. Get the First and Last Day of the Month:
You can get the …
client date dependencies don external feature functions install javascript libraries optimization performance pet programming project security security concerns webdev