Replace Array With New Array Php Format Datetime Sql