Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Then closing it, as there are two open issues about javascript below.
If it's javascript, duplicate issue. If it's not, mention the language.
Hi, thx!
done
In general, the Date Of Birth field does not have to be in date format, the only condition is that it is a string equal to 16 characters!
But thanks for the improvements you suggested!
I applied random date generation which you and mamamia5x suggested
There is, but small. But in your 'manual' implementation it's just the same. If author wants to target specifically leap years with random tests, they need to tune the generator to ensure generation of such dates:
or something, depending on what exactly is needed.
Can't you just do
Date(year:2000).add(days: random(20*365)).format('yyyy-MM-dd')
in Javascript?Handling calendars maually is asking for trouble.
let date = new Date(2000, 0, Math.random() * 20 * 365 + 1 | 0).toISOString().slice(0, 10);
Good idea, thanks! In addition to the current description, I will add an image with a grid showing how the information will be displayed in the result