title: Check if form date is today and if server time is after 3:00pm EST
body: <p>I would like to perform the following in PHP (I am using version 5.2):</p>
  
  <pre><code>IF form_date = current_date AND server_time &gt;= 3:00pm EST
  GIVE ERROR
  </code></pre>
  
  <p>form_date: the date the user enters into the form.</p>
  
  <p>current_date: today's date.</p>
  
  <p>server_time: the current time as supplied by the host server.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>//time validation
  if (date("Gi") &gt; '1500') {
      $process_result['custom_error'] = "You not able to register after 3 PM";
  }
  </code></pre>
  
  <p>I am not sure how to finish this off as PHP is not my thing, at all.  Also, will the server only return whatever timezone it is set in, or can this be changed to a specific timezone such as Eastern Standard (EST)?</p>
  
  <p>Thanks in advance for your assistance!</p>