473,412 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

RowFilter on Date field



I have loaded an xml file to a dataset and one of the fields being
"UserDate" and has date values like
<UserDate>2005-01-01T00:00:00.0000000-05:00</UserDate>
I am trying to apply a row filter to this field and it doesn't seem to work

dvCMonth.RowFilter = "Month(UserDate)=" & Now().Month

dvCMonth.RowFilter = "Month(UserDate)='4'"

no matter what I try, it doesn't work however, Any help would be appreciated
and thanks in advance.
Manoj Das
Jul 21 '05 #1
1 1529
I am not sure that RowFilter supports the Month function. Check the
documentation, it says exactly what is supported. You may end up needing to
parse the string in the filter to get the month out, which is going to be a
pain.

"Manoj Paramu Das" <ma*******@msn.com> wrote in message
news:e0*************@TK2MSFTNGP15.phx.gbl...


I have loaded an xml file to a dataset and one of the fields being
"UserDate" and has date values like
<UserDate>2005-01-01T00:00:00.0000000-05:00</UserDate>
I am trying to apply a row filter to this field and it doesn't seem to
work

dvCMonth.RowFilter = "Month(UserDate)=" & Now().Month

dvCMonth.RowFilter = "Month(UserDate)='4'"

no matter what I try, it doesn't work however, Any help would be
appreciated and thanks in advance.
Manoj Das

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jim Heimer | last post by:
When I use the dataview.rowfilter and I try to display the field value of the first row, the code doesn't seem to show the first row AFTER the rowfilter. This is my code: DataView...
1
by: Manoj Paramu Das | last post by:
I have loaded an xml file to a dataset and one of the fields being "UserDate" and has date values like <UserDate>2005-01-01T00:00:00.0000000-05:00</UserDate> I am trying to apply a row filter to...
8
by: Dave Hagerich | last post by:
I'm using a DataGrid with a DataSet and I'm trying to filter the data being displayed, using the following code as a test: DataView theView = new DataView(theDataSet.Tables); theView.RowFilter =...
10
by: Roy Lawson | last post by:
Can anyone explain the difference between RowStateFilter and RowFilter properties of the DataView objects in simple terms? I am going through a Transcender practice exam and just when I think I...
0
by: Martin | last post by:
Hi, I want to filter on a date column of my view. I use the following syntax : MyDataset.MyTable.DefaultView.RowFilter = "MyDateColumn >= #" & StartingDate & "# and MyDateColumn <= #" &...
1
by: WStoreyII | last post by:
i have a column that is transaction date the datatype is set to date for the column my question is i need to set a row filter that will show all the dates that contain a certain year and month ...
1
by: hoadley | last post by:
I am filtering a data table using the defaultView.rowFilter but when I filter a column of type "dateTime" it throws an exception saying " operator >= can not be used on type dateTime and type...
2
by: Winshent | last post by:
I have a dataset which is populated from a webservice. I want to filter a date field using DateTimePickers, but this just produces an error.. '########################################### If...
1
by: Luis Mendes | last post by:
I have a Table wicth as the Field: Date in the Date/Time format and stores data like dd-MM-yyyy hh:mm:ss. I can I set the Dataview.Rowfilter to filteran especific date no mathers the Time? I've...
3
by: steffen.trommer | last post by:
Dear VB experts, how can i set a rowfilter to a Dataview that filters the data from a startdate to a enddate? I tried this, but whithout success: Me.CurDataViewStatistik.RowFilter =...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.