Trường · Recent
Trường · Recent · date.recent. Phương thức tạo · Ví dụ
date.recent
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
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.
Ví dụ
"2025-12-31T16:01:56.723Z"Dùng dữ liệu tổng hợp trong môi trường kiểm thử.