Improved DateTime and removed closing php tag