Results 1 to 4 of 4

Thread: Rowfilter and Dates

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    10

    Rowfilter and Dates

    Hi,

    I am reading an xml file into a dataset and then trying to filter the records on a date field.

    The date in the xml file looks like this:

    <sdate>2007-19-17T00:00:00+01:00</sdate>

    Whatever way I try and use the rowfilter method it return 0 items.

    How do you filter on a date?

    Thanks.

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Rowfilter and Dates

    Code.
    +
    You can ask on .net forum, i think it's a .net issue (and we are only a dozen here in the mobiles )

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    10

    Re: Rowfilter and Dates

    Code is:


    strFilterString = "sdate = '17/09/2007'"
    dsRecSet.Tables("SelectTable").defaultview.RowFilter = strFilterString

    I should have 18 records however the code:

    dsRecSet.Tables("SelectTable").defaultview.count = 0

    I am using VB 2005 with a device application so the application is running on my Pocket PC phone.

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Rowfilter and Dates

    Yes u are using mobile but in Visual studio
    Anyway, try to do a "cast" as datetime on the date.

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