Method | Description | |
---|---|---|
Backwards ( int days = 365 ) : System.DateTime |
Generates a random DateTime between number of days in the past and
|
|
Between ( System.DateTime from, System.DateTime to ) : System.DateTime |
Generates a random DateTime between the specified from and to.
|
|
Birthday ( int minAge = 18, int maxAge = 65 ) : System.DateTime |
Generates a random DateTime between the specified
|
|
Forward ( int days = 365 ) : System.DateTime |
Generates a random DateTime between DateTime.Today">Today and number of |
public static Backwards ( int days = 365 ) : System.DateTime | ||
days | int | The number of days to calculate the minimum date. |
return | System.DateTime |
public static Between ( System.DateTime from, System.DateTime to ) : System.DateTime | ||
from | System.DateTime | The minimum date. |
to | System.DateTime | The maximum date. |
return | System.DateTime |
public static Birthday ( int minAge = 18, int maxAge = 65 ) : System.DateTime | ||
minAge | int | The minimum years into the past. |
maxAge | int | The maximum years into the past. |
return | System.DateTime |
public static Forward ( int days = 365 ) : System.DateTime | ||
days | int | The number of days to calculate the maximum date. |
return | System.DateTime |