Yaak Logo
Yaak
Feedback/`faker.date` return as number

`faker.date` return as number

Mikkel ALMONTE--RINGAUD·2 months ago
ResolvedFeature RequestImprovementQuestion

Hello!

I am testing my API with Yaak and for dates it uses timestamps.

However, when I’m using faker.date.future(...) it returns only the string ISO version, such as "2026-05-26T20:36:12.099Z" for example.

Is there any way to make it return a timestamp as of right now ? If not, could that be a feature?

macOS

Comments (2)

Sign in to leave a comment.

Gregory SchierResolved

Glad you found a solution!

Mikkel ALMONTE--RINGAUDOP

Nevermind, I found the answer!

If anyone have the same issue, there’s a solution : use timestamp.unix or timestamp.unixMillis and put inside the function the faker.date value.

Type to search feedback...