3.7k views
0 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

1 Answer

4 votes

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

User Cliu
by
5.1k points