Date-check with non-string return type - design
<pre><code>public static bool CheckExpired()
{
    DateTime expiryDate, currentDate = DateTime.Today;
    DateTime.TryParse(date, out expiryDate);

    if (expiryDate &gt; currentDate)
    {
        return true;
    }
    else { return false; }
}
</code></pre>

<p>This is what I have now. However, I'd like there to be a third option for if a date isn't formatted correctly. As it is now, it jumps straight to the else and returns false.</p>

<p>The problem is that I want three possible results:</p>

<p>true --> has not expired</p>

<p>false --> has expired</p>

<p>third --> invalid date entered</p>

<p>I'm just stuck on how I get there. I know I could easily just use a String return type, but is there any way around that?</p>
