title: FullCalendar dayClick functionality
body: <p>I am fairly new to the FullCalendar, but totally love it's functionality.
  I am trying to use the <code>dayClick</code> function. Perhaps someone can guide me in the right direction.</p>
  <p>I currently have this:</p>
  <pre><code>dayClick: function (date, allDay, jsEvent, view) {
              var titleNew = prompt('Event Title:');
              var thedate1 = formatDate(date);
              
              $.ajax({
                  url: &quot;classes/class.Post.php?a=dayClickCalendarEvent&quot;,
                  dataType: 'json',
                  data: { 
                        title: titleNew,
                        start: thedate1,
                        end: thedate1
                  },
                  success: function (data, response, event, date) {
  
                      $('#calendar').fullCalendar('renderEvent', titleNew);
                  },
                  error: function () {
                      alert(&quot;Oops! Something didn't work&quot;);
                  }
              });
          },
  </code></pre>
  <p>My problem is that I can't get the event to RENDER to the calendar no matter what.
  Am I missing something? I am using the <code>calEvent</code>, where I found it on another Stack Overflow post.</p>
  <p>Here is my format code:</p>
  <pre><code>function formatDate(date1) {
     return date1.getFullYear() +'-'
           + (date1.getMonth() &lt; 9 ? '0' : '')
           + (date1.getMonth()+1) +'-'
           + (date1.getDate() &lt; 10 ? '0' : '') 
           + date1.getDate() +' '
           + (date1.getHours() &lt; 10 ? '0' : '')
           + date1.getHours() +':'
           + (date1.getMinutes() &lt; 10 ? '0' : '')
           + date1.getMinutes();
   } 
  </code></pre>
  <p>Any help would be appreciated.</p>