Checking the date

Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 2
Reputation: veboit is an unknown quantity at this point 
Solved Threads: 0
veboit veboit is offline Offline
Newbie Poster

Checking the date

 
0
  #1
Oct 28th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 2
Reputation: veboit is an unknown quantity at this point 
Solved Threads: 0
veboit veboit is offline Offline
Newbie Poster
 
0
  #2
Oct 28th, 2009
Originally Posted by veboit View 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

I tried below but got error

choose($start-date > date:seconds(),'Future',$start-date <= date:seconds(), 'Previous','none')
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



Tag cloud for XML, XSLT and XPATH
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC