Use of DateTime is not allowed in Dolibarr because of compatibility with PHP versions lower than 5.2.0