Created
April 7, 2021 19:48
random dates
This file contains 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
Array.from({ length: 366 }).map((_, i) => i +1).sort(() => Math.random() - 0.5).map((n) => { const date = new Date(2020, 0); return new Date(date.setDate(n)).toISOString().slice(0,10)}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment