title: django : how to read a date from javascript to python function
body: <p>in my javascript file, I have a function</p>
  
  <pre><code>function saveMyData(event, dayDelta, minuteDelta) {
  
  montitre = event.title;
  mondepart = event.start;
  mafin = event.end;`
  
  $.getJSON("{% url events_drag %}", {'title': montitre, 'start': mondepart,
   'end': mafin},  function(data) {
   });
   }
  </code></pre>
  
  <p>if i put a message alert inside the function</p>
  
  <pre><code>alert(mafin);
  </code></pre>
  
  <p>I display :</p>
  
  <pre><code>Tue Aug 04 2015 16:00:00 GMT+0200
  </code></pre>
  
  <p>I want to send <code>mafin</code> to a python function with <code>getJSON</code> and read <code>mafin</code> with this code :</p>
  
  <pre><code>def eventsdrag(request):
      end = float(request.GET.get('end'))
      end = datetime.datetime.fromtimestamp(end)
  </code></pre>
  
  <p>How to convert <code>'Tue Aug 04 2015 16:00:00 GMT+0200'</code> in a number and read this number with <code>request.GET.get</code>?</p>