add maxdate and mindate property