Added a support of a min(max) date.