Validate Date in text box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news.tie.cl

    Validate Date in text box

    Hello to all, I am developing an application ASP and desire to
    validate the fields of dates before jumping to consultation SQL, the dates
    is entered text boxes and the idea is that been worth when losing the Focus.
    How I can do that? Thanks.




    --
    Marco Antonio Artus S.
    Lakromsoft INC.
    09-9594663


  • Ray Costanzo [MVP]

    #2
    Re: Validate Date in text box

    A good starting point with be the IsDate function that is part of VB Script,
    assuming you're using VB Script.

    <%
    If Not IsDate(Request. Form("txtDate") ) Then
    Response.Write "Invalid date entered. Please correct it."
    Response.End
    End If
    %>

    Gain technical skills through documentation and training, earn certifications and connect with the community


    Ray at work

    "news.tie.c l" <pitutito@conne ctmachine.cl> wrote in message
    news:w73ud.294$ ID2.551@jagger. tie.cl...[color=blue]
    > Hello to all, I am developing an application ASP and desire to
    > validate the fields of dates before jumping to consultation SQL, the dates
    > is entered text boxes and the idea is that been worth when losing the[/color]
    Focus.[color=blue]
    > How I can do that? Thanks.
    >
    >
    >
    >
    > --
    > Marco Antonio Artus S.
    > Lakromsoft INC.
    > 09-9594663
    >
    >[/color]


    Comment

    Working...