Champ · Birth date

Champ · Birth date · date.birthdate. Méthode de génération · Exemple

date.birthdate

Options du générateur

Générez des données pour les voir ici.

Paramètres & Exemple

Returns a random birthdate. By default, the birthdate is generated for an adult between 18 and 80 years old. But you can customize the 'age' range or the 'year' range to generate a more specific birthdate.

date.birthdate(options?: { refDate? })
options
The options to use to generate the birthdate.
options.refDate
The date to use as reference point for the newly generated date. Defaults to the configured reference date.

Exemple

"1987-02-01T14:17:36.314Z"

Utilisez des données synthétiques dans un environnement de test.

Générateurs associés

Explorer les scénarios