jQuery( function () {


    jQuery( "._crowdfundingfromdatepicker_class" ).datepicker( {
        
        altField :jQuery( "._crowdfundingfromdatepicker_class").next( "._crowdfundingfromdatepicker_hidden_value" ) ,
        altFormat : 'dd-mm-yy' ,
        onClose : function ( selectedDate ) {
            var maxDate = new Date( Date.parse( selectedDate ) ) ;
            maxDate.setDate( maxDate.getDate() + 1 ) ;
            jQuery( "._crowdfundingtodatepicker_class" ).datepicker( "option" , "minDate" , maxDate ) ;
        }
    } ) ;
    jQuery( "._crowdfundingtodatepicker_class" ).datepicker( {
        altField : jQuery( "._crowdfundingtodatepicker_class").next( "._crowdfundingtodatepicker_hidden_value" ) ,
        altFormat : 'dd-mm-yy' ,
        onClose : function ( selectedDate ) {
            jQuery( "._crowdfundingfromdatepicker_class" ).datepicker( "option" , "maxDate" , selectedDate ) ;
        }
    } ) ;
} ) ;
