how to assign today's date in c# code example Example: c# get today's date DateTime today = DateTime.Today;