anchor.diff:          <%= f.label t('booking.pick_up_date') %></br>
         </td>
         <td>
  -        <%= f.input :pickup_date, :label =>false ,:input_html =>{:class=>"booking_pick_date"}%>      
  +        <%= f.input :pickup_date, :label =>false ,:input_html =>{:class=>"booking_pick_date"} %>         
         </td>    
       </tr>
   
  
positive.code:       </td>    
      </tr>
  
       <tr>
        <td>
          <%= f.label "Renting",:for=>:booking_rating %></br>
        </td>
        <td>
          <%= f.input :rating, :label =>false, :as => :select, :collection => 1..4 %>      
        </td>    
      </tr>
  
      <tr>
        <td>
  
negative.code: 
  </div>
  
  
  <script type="text/javascript">
    function convertDateTime(dTime){
        dateTime = dTime.replace(/-/g,"/")      
        if (dateTime){ 
          dateTime = new Date(dateTime.toString())
          dateTime.setDate(dateTime.getDate()+3);
          return dateTime;
        }else{
          return false;
        }
    }
    jQuery(document).ready(function() {
      var startdate = jQuery("#booking_pickup_date").datetimepicker({
        startDate: "<%= Time.now.to_formatted_s(:db) %>",
        autoclose:true
      }).on('changeDate', function(ev){        
        if (ev.date.valueOf() > convertDateTime(jQuery("#booking_delivery_date").val())){
            jQuery("#booking_delivery_date").val('')
        }});
      var enddate = jQuery("#booking_delivery_date").datetimepicker({startDate:"<%= Time.now.to_formatted_s(:db) %>",autoclose:true}).on("click", function(ev){
  
        var start_date = convertDateTime(jQuery("#booking_pickup_date").val());
  
        if (start_date)
        {
          $('#booking_delivery_date').datetimepicker('setStartDate',start_date);
        }
      });
  });
  
  </script> 