title: populate JQuery datetimepicker with persian(jalaali) calendar
body: <p>I want to use <a href="http://plugins.jquery.com/datetimepicker/" rel="nofollow">JQuery datetimepicker</a> with persian calendar.
  Since it's not officially supported, I'm trying to do it using <a href="http://momentjs.com" rel="nofollow">moment.js</a> and <a href="http://momentjs.com/docs/#/plugins/jalaali/" rel="nofollow">moment-jalaali.js</a>. </p>
  
  <p>I managed to get the input to change to persian date. </p>
  
  <p>I mean upon clicking on day 6th of December 2014 the input would change to "1393/9/15" which is the same date in persian calendar.</p>
  
  <p>and this is what I've done so far:</p>
  
  <pre><code>&lt;script type="text/javascript" src="jquery.datetimepicker.js')}}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="moment.min.js')}}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="moment-jalaali.js')}}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      Date.parseDate = function( input, format ){
          return moment(input,format).toDate();
      };
      Date.prototype.dateFormat = function( format ){
          return moment(this).format(format);
      };
      $(document).ready(function () {
          $('.datepicker').datetimepicker({
              format: 'jYYYY/jM/jD - H:m',
              lang: 'fa'
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>But calendar is still showing gregorian calendar. and adding the "lang" option to datepicker, only changes the language of calendar.</p>
  
  <p>I have to populate the calendar with persian calendar and I have absolutely no idea how.</p>