WebGrid Community Server

Welcome to WebGrid Community Server Sign in | Join | Help
in Search

WebGrid - Search into a date field

Last post 08-13-2008, 16:26 by marc. 2 replies.
Sort Posts: Previous Next
  •  08-13-2008, 12:16 732

    WebGrid - Search into a date field

    Hi,

    I have a problem with the search option. I want to search a date field but it does'n work correct.
    As example:
    If i type the search tekst '1956' the recordset returns all the records from the persons who has born in the year 1956.

    If i type the search tekst '12-04-1956' the recordset returns nothing.

    The Column part is:
    <WG:DateTime 
       ColumnId="Geboren" 
       EditAlign="Right" 
       GridAlign="Left" 
       IsInDataSource="True" 
       Primarykey="False" 
       Priority="40" 
       Required="False" 
       Title="Geboren" 
       Visibility="Both" 
       Searchable="True" 
       Format="dd-MM-yyyy"
    />

    I hope that somebody can help me..

    Regards Marc

  •  08-13-2008, 16:24 733 in reply to 732

    Re: WebGrid - Search into a date field

    WebGrid searches directly from the database, and i'm not sure if you can search for a formatted date-time field.

    You should try to store the datetime field in same format as you search for it.

     


    Olav Botterli, WebGrid Founding Developer
  •  08-13-2008, 16:26 734 in reply to 733

    Re: WebGrid - Search into a date field

    Is it possible to find a date in a other format? Which format must i use?

     

    Regards,

    Marc

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems