Campo · Recent

Campo · Recent · date.recent. Metodo di generazione · Esempio

date.recent

Impostazioni

Genera dati per vedere i risultati.

Parametri & Esempio

Generates a random date in the recent past.

date.recent(options?: { days?, refDate? })
options
The optional options object.
options.days
The range of days the date may be in the past. Either as a fixed amount of days or as a day range. Defaults to 1.
options.refDate
The date to use as reference point for the newly generated date. Defaults to the configured reference date.

Esempio

"2025-12-31T16:01:56.723Z"

Usa dati sintetici nell’ambiente di test.

Generatori correlati

Esplora gli scenari