current date in c# system datetime code example Example: c# get current date DateTime now = DateTime.Now;