fixed bug MinDate MaxDate and full example