May 6th, 2010, 01:38 PM
Apth query - range check
I store some data in XML, along with the date it was created. The Datetime.Ticks property has the no; of ticks since the year 1100. I want to allow the users to select a date range and display data for the selected dates to be filtered. I use Ticks to select nodex based on that, it works.
so, //Tasks/task[@Ticks>16588372930411]" works , note that ticks is a long type.
But using ticks to compares does NOT work Like:
//Tasks/task[@Ticks>16588372930411 and @Ticks<83744578232].
Is my xpath query wrong? how do we apply a between x and Y operator here. Iam doing this in C#. Any help would be greatly appreciated. Thank you.
[If you find my answers useful, please leave your comments and rating for it.]
My Dev.: MS VS 2005 Version 8.0.50727.42 .NET 2.0.50727
Mark your answers Tools>>RESOLVED once its answered.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!