Date.

Between(DateTime, DateTime) Method

Summary

Generates a random DateTime between the specified from and to.
Namespace
Faker
Containing Type
Date

Syntax

public static DateTime Between(DateTime from, DateTime to)

Parameters

Name Type Description
from DateTime The minimum date.
to DateTime The maximum date.

Return Value

Type Description
DateTime The generated DateTime.
GitHub