3 ms·
From where is that? This is how it works in C# (and .NET in general) DateTime.Now.AddDays(-2) Not wanting to overload integers with calendar functionality do
by tizoc 13y ago
From where is that?
This is how it works in C# (and .NET in general)
DateTime.Now.AddDays(-2)
Not wanting to overload integers with calendar functionality doesn't mean you have to make it so cumbersome.
Edit: typo
- usea 13y agoYou can also do: DateTime.Now - TimeSpan.FromDays(2)