Validating date format
<p>Anybody knows how to validate date format in the format of <code>mm/dd/yyyy</code>.
I have tried this code but is not working.</p>

<p>In the userform:</p>

<pre><code>dateCheck (txtStartDate)
</code></pre>

<p>In module:</p>

<pre><code>Function dateCheck(dateValue As Date) As Boolean
    If CDate(dateValue) &lt;&gt; "mm/dd/yyyy" Then
        MsgBox "Please use the mm/dd/yyyy  date format!"
        dateCheck = True
    End If
End Function
</code></pre>

<p>Am I on the right track? Thanks!</p>