Changing datetime to QDate to avoid conversion and extend the range