datetime will return the current date c# asp.net code example Example: c# get current date DateTime now = DateTime.Now;