adding a new class MyDateTime for substitution of DateTime, and replace corresponding Datetime variable declaration to MyDateTime