Date Class

Summary

A collection of Date related resources.
Namespace
Faker
Base Types
  • object
graph TD Base0["object"]-->Type Type["Date"] class Type type-node

Syntax

public static class Date

Methods

Name Value Summary
Backwards(int) DateTime
Generates a random DateTime between number of days in the past and System.DateTime.Today
static
Between(DateTime, DateTime) DateTime
Generates a random DateTime between the specified from and to.
static
Birthday(int, int) DateTime
Generates a random DateTime between the specified maxAge and minAge.
static
Forward(int) DateTime
Generates a random DateTime between System.DateTime.Today and number of days into the future.
static
GitHub