Skip to content

supersonicclay/csharp-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csharp-date

Implementation of the missing C# Date struct.

Instructions

Include as a single file.

Example

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.

About

Implementation of the missing C# Date struct

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages