c# datetime today with time code example Example: c# get today's date DateTime today = DateTime.Today;