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

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')

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.