I don’t think I’m going to need to say much about the following code, as anyone with even an inkling of the features of the .NET framework would know that it’s a joke. See the nugget(s) of genius below:
[source:csharp]public static void ToStartofCurrDay(ref DateTime aDate)
{
aDate = aDate.Subtract(aDate.TimeOfDay);
}
public static void ToEndofPrevDay(ref DateTime aDate)
{
aDate = aDate.Subtract(aDate.TimeOfDay);
TimeSpan ts = [...]
WTF: Date Malarky
4 Comments »










