Object Reference Not Set to Instance of an Object
Sometimes we find some code that... well.... I guess someone must be really REALLY high to write...
The WTF way
DateTime.Parse(DateTime.Now.ToShortDateString()).ToString("dd-MM-yyyy")
The right way:
DateTime.Now.ToString("dd-MM-yyyy")
Powered by: Skin design by Mark Wagner, Adapted by David Vidmar Copyright © Sglima