I have a \"requirement\" to give a timestamp to the nearest second... but NOT more accurate than that. Rounding or truncating the time is fine.
I have come up with t
You can use this constructor:
public DateTime( int year, int month, int day, int hour, int minute, int second )
so it would be:
DateTime dt = DateTime.Now; DateTime secondsDt = new DateTime(dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute, dt.Second);