필드 · Past

필드 · Past · date.past. 생성 메서드 · 예시

date.past

생성 설정

데이터를 생성하면 결과가 표시됩니다.

매개변수 & 예시

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.

예시

"2025-09-01T19:54:07.155Z"

테스트 환경에서 합성 데이터를 사용하세요.

관련 생성기

시나리오 탐색