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