[Issue 29] added min/max arguments to getValidDate