DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Get 7 days Array
const pastWeek = [...Array(7).keys()].map(days => new Date(Date.now() - 86400000 * days))
Source by livecodestream.dev #
PREVIOUS
NEXT
Tagged:
#Get
#days
#Array
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit