is it possible to hardcode dates similar to vb.net, #1/1/1900#, or is the only option to use DateTime.Parse("1/1/1900"), etc.
Printable View
is it possible to hardcode dates similar to vb.net, #1/1/1900#, or is the only option to use DateTime.Parse("1/1/1900"), etc.
Use DateTime.Parse. :)
Or "new DateTime(1900, 1, 1)" I guess. I must say that I was surprised that C# has no in-built date type either. I suppose the in-built type and the literal notation go hand in hand.
thanks :thumb: