DatePicker is not working Datepicker is not working. This code working with Drupal 6, but not with Drupal 7.

drupal_add_js(drupal_get_path('module', 'PROPERTY') .'/jquery/jquery-1.4.1.js', 'module');
drupal_add_js(drupal_get_path('module', 'PROPERTY') .'/jquery/jquery.min.js', 'module');
drupal_add_js(drupal_get_path('module', 'PROPERTY') .'/jquery/jquery-ui.min.js', 'module');
drupal_add_js(drupal_get_path('module', 'PROPERTY') .'/jquery/datepicker.js', 'module');
drupal_add_js(drupal_get_path('module', 'PROPERTY') .'/jquery/ztfb_datepicker.js', 'module');
drupal_add_css(drupal_get_path('module', 'PROPERTY') .'/jquery/ui.all.css', 'module');

drupal_add_js(drupal_get_path('module', 'PROPERTY') .'/jquery/scrollJump.js', 'module');




$(document).ready(function() {       
  $("#startdate").datepicker({
    dateFormat:'dd-mm-yy',
    autosize:false,
    changeYear:true,
    changeMonth:true       
  });
});  


I include the file in PROPERTY_Form.admin.inc file. 

require_once("D://wamp/www/propertysite/cron/includes/jquerydatepicker.php");

function PROPERTY_Form() {
  global $user; 
  $form = array();

  $form['PROPERTY_Form']['startSyncFrom'] = array(      
    '#type' =&gt; 'textfield',
    '#prefix'=&gt;'&lt;tr&gt;&lt;td&gt;',
    '#suffix'=&gt;'&lt;/td&gt;&lt;/tr&gt;',
    '#id'=&gt;'startdate',
    '#default_value'=&gt;date('d-m-Y'),
    '#description' =&gt; '(You can select any past date to ensure even your old Data gets synced)',
    '#attributes'=&gt;array('tabindex'=&gt;9,'style'=&gt;'width:70px;'),
  ); 

  return $form;
}
You do not have to include all of that jquery libraries: Drupal core has that libraries. You can just include any jquery.ui library with drupal_add_library('system', 'ui.datepicker') or another library which you want to include. Then, in your JavaScript file, you can write something like this.

(function ($) {
  Drupal.behaviors.custom_js = {
    attach: function(context) {
      $('#YOURID input[type="text"]').datepicker({
        showOn: "button",
        buttonImage: Drupal.settings.basePath + "sites/all/themes/YOURTHEME/images/calendar.png",
        dateFormat: "dd-mm-yy",
        showAnim: "slideDown",
        buttonImageOnly: true
      });
    }
  };
})(jQuery);


If you want to use the datepicker with the form API, you have to change the type element to 'date_popup'.