It's all about the answers!

Ask a question

how to compare two date of type timestamp?

shweta ranaware (371750) | asked Aug 14 '15, 5:07 a.m.
     I want to write the script that can compare dates .
 for example Planned start  date and Planned end date if Planned End date is entered as greater than planned start date then error message must be displayed in workItem.
How i compare the two dates ?

Please Help.. 

Accepted answer

permanent link
Donald Nong (14.5k414) | answered Aug 17 '15, 1:17 a.m.
I assume that you are talking about JavaScript. In this case, you need to parse the value (most likely a string) into a date value, then compare.

If for some reason you are referring to Java, see samples below.
shweta ranaware selected this answer as the correct answer

Your answer

Register or to post your answer.