[fix bug 786614] Display an error when user selects an invalid date.