public static GetRandomDateCurrentMonth ( ) : System.DateTime | ||
Результат | System.DateTime |
public static DateTime GetRandomDateCurrentMonth()
{
DateTime randomDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, GetRandomNumber(1, 28));
return randomDate;
}