944,080 Members | Top Members by Rank

Ad:
Oct 28th, 2009
0

Checking the date

Expand Post »
Hi All,

I am new to Xpath so this is a very basic question.
I have a date variable I want compare that variable to current date.
example: my_date > current_date then print "previous date"
how to write this in xpath?
thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
veboit is offline Offline
2 posts
since Oct 2009
Oct 28th, 2009
0
Re: Checking the date
Click to Expand / Collapse  Quote originally posted by veboit ...
Hi All,

I am new to Xpath so this is a very basic question.
I have a date variable I want compare that variable to current date.
example: my_date > current_date then print "previous date"
how to write this in xpath?
thanks

I tried below but got error

choose($start-date > date:seconds(),'Future',$start-date <= date:seconds(), 'Previous','none')
Reputation Points: 10
Solved Threads: 0
Newbie Poster
veboit is offline Offline
2 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in XML, XSLT and XPATH Forum Timeline: Variable not working as expected?
Next Thread in XML, XSLT and XPATH Forum Timeline: XPATH Question on Filtering / Condition





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC