compare « Date « JSP-Servlet Q&A

1. Problems during Date Time comparison in JavaScript

I have a scenario where i have to compare two DateTime objects Start DateTime and End DateTime

  1. EndDatetime should be greater than StartDateTime
  2. EndDateTime should be greater than CurrentTime
Now i am trying with ...

3. Date and Timestamp comparison

Guess it would be easiest just to post some code. I'll redact the irrelevant parts. <%@ page contentType="text/html" %> <%@ taglib prefix="c" uri="" %> <%@ taglib prefix="sql" uri="" %> <%@ taglib prefix="fmt" uri="" %> SELECT UnitName, AP, Outcomes, Budget FROM Units WHERE ID = ${param.cboUnit}; SELECT CycleName, AP_Start_Date, AP_End_Date, Bud_Start_Date, ...

4. compare date in jsp