Change date format and chmod added for security