set a date property with today's date c# code example Example: c# get today's date DateTime today = DateTime.Today;