added DateTimeExtensions and tests