UtilDateTimeGetRandomDateTime(DateTime) Method
Gets a random DateTime in range between MinValue and the specified date.
Namespace: DevCase.Core.DateAndTimeAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static DateTime GetRandomDateTime(
DateTime dateMax
)
Public Shared Function GetRandomDateTime (
dateMax As DateTime
) As DateTime
Dim dateMax As DateTime
Dim returnValue As DateTime
returnValue = UtilDateTime.GetRandomDateTime(dateMax)
public:
static DateTime GetRandomDateTime(
DateTime dateMax
)
static member GetRandomDateTime :
dateMax : DateTime -> DateTime
No code example is currently available or this language may not be supported.
- dateMax DateTime
-
The maximum DateTime.
DateTime
The resulting
DateTime.
This is a code example.
No code example is currently available or this language may not be supported.
Dim maxDate As Date = Date.MaxValue
Dim ramdomDate As Date = GetRandomDateTime(maxDate)
Console.WriteLine(randomDate.ToString())
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.