How to call the following function in JQuery
<pre><code>jQuery.fn.daterangepicker = function(settings){
    var rangeInput = jQuery(this);

    //defaults
    var options = jQuery.extend({

    ........

    //function to format a date string        
    function fDate(date){
       if(!date.getDate()){return '';}
       var day = date.getDate();
</code></pre>

<p>It is being used as follow syntax</p>

<pre><code>$('input').daterangepicker( {
                dateFormat : "M d, yy",
</code></pre>

<p>May I know how I can call function fDate?</p>

<p>I try</p>

<pre><code>$('input').fDate(....) 
</code></pre>

<p>but it doesn't work.</p>

<p>I get</p>

<p>$("input").fDate is not a function</p>

<p>The first portion of the code are from date picking library <a href="http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/" rel="nofollow">http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/</a></p>
