Implementation of the missing C# Date struct.
Include as a single file.
Date today = Date.Today;
Date yesterday = Date.Today.AddDays(-1);
Date piDay = Date.Parse("2015-03-14");
piDay.ToLongString(); // "Saturday, March 14, 2015"
piDay.ToShortString(); // "3/14/2015"
piDay.ToString(); // "3/14/2015"
piDay.ToString("s"); // "2015-03-14"
int march = piDay.Month; // 3
Licensed under MIT.