show current date and time csahrp code example Example: c# get current date DateTime now = DateTime.Now;