Return to Snippet

Revision: 27457
at June 9, 2010 10:58 by vagrantradio


Initial Code
<% java.util.Date today = new java.util.Date(); java.util.Date ad = new java.util.Date("May 25, 2010 12:00 AM");%>
<% if (today.compareTo(ad) > 0){ %>
  Displays after date
<%} else {%>
  Displays before date
<% } %>

Initial URL

                                

Initial Description

                                

Initial Title
Java Date Detection

Initial Tags
date, java

Initial Language
Java