Avoid DateTime::createFromFormat as it is relatively new