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