title: Jquery Date Picker in angular 8
body: <p>I'm trying to implement datepicker using jQuery library because my requirement of datepicker is not matching with available intenet source. so I decide create my own datepicker using jquery UI</p>
  
  <p>I have included jQuery UI in index.html</p>
  
  <pre><code>  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and in the component </p>
  
  <pre><code>  Start Date : &lt;input type="text" #sd name="startDate" id="startDate"/&gt;
  </code></pre>
  
  <p>in th ts file</p>
  
  <pre><code>declare var $: any;
  
  $( '#startDate' ).datepicker({
        dateFormat: 'dd/mm/yy',
        firstDay: 1
      });
  </code></pre>
  
  <p>but every time I'm getting error </p>
  
  <blockquote>
    <p>core.js:7187 ERROR Error: Uncaught (in promise): TypeError: $(...).datepicker is not a function
    TypeError: $(...).datepicker is not a function</p>
  </blockquote>
  
  <p>I tried all the available answers in the Stack Overflow.</p>