http://www.codeproject.com/Articles/576178/cast-convert-format-try-parse-date-and-time-sql#2