| | |
Checking the date
Please support our XML, XSLT and XPATH advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2009
Posts: 2
Reputation:
Solved Threads: 0
0
#2 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
I tried below but got error
choose($start-date > date:seconds(),'Future',$start-date <= date:seconds(), 'Previous','none')
![]() |
Similar Threads
- checking for date created/last modified (C#)
- A problem with date and mysql query (PHP)
- Code Snippet: Checking on Date and Time (C#) (C#)
- Help, Help with Traffic Simulation program (Java)
- Check for valid date, fine if no date entered (C++)
- newbie question regarding checking date of file (Shell Scripting)
- Here is the doc file for the assignment (C++)
- Windows XPPro crashes .. (Windows NT / 2000 / XP)
Other Threads in the XML, XSLT and XPATH Forum
- Previous Thread: Variable not working as expected?
- Next Thread: XPATH Question on Filtering / Condition
Views: 649 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for XML, XSLT and XPATH
api blogger blogging code dataset delete development dynamiccreationofnvariablesinxslt error firstthreecharacterofastringrequired flipbook gdata google html include java link linspire linux microsoft news node openoffice overwrite precedence programming rss serialization standards swf template transform variable w3c web xml xmlnotloading xmlonserver xsl xslt





