date time heutiges datum code example
Example 1: date time heutiges datum
DateTime a = ;//some datetime
DateTime now = DateTime.Now;
TimeSpan ts = now-a;
Example 2: date time heutiges datum
var date= DateTime.Now.Date;
Example 3: date time heutiges datum
string x = DateTime.Now.ToShortDateString()