Search
 
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
Name
5+9 =