DateTime.Today is static readonly. So supposedly it should never change once (statically) instantiated.
However — if I fire up an application and ask for the date at 11:59pm and then again at 12:01am, it will correctly give me different values each time i call it, right?
Let’s say I wanted to create a static readonly “DateTime.TwoDaysFromNow” (just a representative example) that behaves the same way. .NET will tell me I can’t b/c it’s a readonly remember! How can I make it work?
Much appreciated,
-Alan.
You can tell
DateTime.Todayis a property from Microsoft’s Syntax of it: