C#, Custom Date and Time Format Strings - with semantics

added by danielwertheim
5/4/2014 5:23:30 PM

4 Kicks, 136 Views

When it comes to formatting dates and time strings, people seem to forget (I don't blame them) and mixes up stuff like M vs m; which one is months and which one is minutes? And how many characters was it to get abbreviation instead of month number? I took a few minutes, violated some principles and put together a simple fluent API with semantic meanings in the formating process. Now, it will not cover everything, but you will get the idea.


0 comments