262,472 views
34 votes
34 votes
To create a datetime object for the current date and time, you can use theGroup of answer choicestoday() method of the date classtoday() method of the datetime classnow() method of the date classnow() method of the datetime class

User Bpedroso
by
3.2k points

1 Answer

16 votes
16 votes

var theDate = new DateTime (DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, hours, minute, second);

User Can Lu
by
2.7k points