Created
March 10, 2024 23:36
-
-
Save luan0ap/2b429f7435cd753f348a1e4260483717 to your computer and use it in GitHub Desktop.
Add days to Date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addDay = (days = 1) => { | |
const date = new Date() | |
date.setDate(date.getDate() + days) | |
return date | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment