title: PrimeFaces 3.3.1 calendar disable future dates, in international application
body: <p>I am writing a JSF 2.0 Mojarra application using Primefaces 3.3.1 on Tomcat 6.  Using the PrimeFaces <code>&lt;p:calendar&gt;</code> component, I need to disable future dates.  I realize that I must set the maxdate attribute to the current date.  However, I am not sure what the easiest way is to accomplish this.</p>
  
  <p>I realize that I could create a Managed Bean of <code>java.util.Date</code>, but this is an international application, and I need to account for the location of the user.  If the user is on the other side of the world, the server date could be incorrect for him.</p>
  
  <p><strong>So, what is the easiest way to retrieve the current date at the user's location, and set the <code>&lt;p:calendar&gt;</code> maxdate attribute equal to that value?</strong>  A completely client-side solution would be ideal, if that is possible.</p>