Updated Min Date Func to fix date comparison.  Thanks @Kastiglione.