how to compare two date of type timestamp?
Hi..
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
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.
http://www.w3schools.com/js/js_date_methods.asp If for some reason you are referring to Java, see samples below. http://javarevisited.blogspot.com.au/2012/02/3-example-to-compare-two-dates-in-java.html shweta ranaware selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.