Champ · Past
Champ · Past · date.past. Méthode de génération · Exemple
date.past
Options du générateur
Générez des données pour les voir ici.
Paramètres & Exemple
Generates a random date in the past.
date.past(options?: { years?, refDate? })- options
- The optional options object.
- options.years
- The range of years the date may be in the past. Either as a fixed amount of years or as a year range. Defaults to 1.
- options.refDate
- The date to use as reference point for the newly generated date. Defaults to the configured reference date.
Exemple
"2025-09-01T19:54:07.155Z"Utilisez des données synthétiques dans un environnement de test.