Updated new DateTime() function as new \DateTime() fuction due to namespace concept