CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #3
    Join Date
    Jul 2006
    Posts
    141

    Re: DateTime Checking

    Got it ..this is what i do
    Code:
    Public  Function IsDate(ByVal strDate  As String) As Boolean
            If strDate Is Nothing Then
               strDate = ""
            End If
            If strDate.Length > 0 Then
                Dim dteEmpty As Date = Nothing
                Return DateTime.TryParse(strDate, dteEmpty)
            Else
                Return False
            End If
    Last edited by johnsonlim026; July 12th, 2007 at 03:36 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured