I use phpspreadsheet to write a xlsx file for user to import their data. And use custom datetime validation to validate the datetime field.
$datetime_validation =