Skip to content

Instantly share code, notes, and snippets.

@drazik
Created April 7, 2021 19:48
random dates
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