Implemented maxDateTime and minDateTime.