c# get today's date

C#
 DateTime today = DateTime.Today;
Source

Also in C#: