Trường · Future

Trường · Future · date.future. Phương thức tạo · Ví dụ

date.future

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 future.

date.future(options?: { years?, refDate? })
options
The optional options object.
options.years
The range of years the date may be in the future. 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.

Ví dụ

"2026-09-01T19:54:08.155Z"

Dùng dữ liệu tổng hợp trong môi trường kiểm thử.

Trình tạo liên quan

Khám phá kịch bản