title: Datepicker bootstrap 5
body: <p>I have switched from bootstrap4 to bootstrap5 and I'm struggling with the date picker. Please help if someone has worked on this.
  I have added the date picker plugins also, but still, it's not working.
  The date picker icon is also not working.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
  &lt;meta charset=&quot;UTF-8&quot;&gt;
  &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
  &lt;!-- Bootstrap CSS --&gt;
  &lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css&quot; 
  rel=&quot;stylesheet&quot; integrity=&quot;sha384-+0n0xVW2eSR5Oom 
  GNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x&quot; crossorigin=&quot;anonymous&quot;&gt;
  &lt;!-- Datepicker --&gt;
  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/bootstrap- 
  datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css&quot;&gt;
  &lt;!-- CDN JS --&gt;
  &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot;&gt; 
  &lt;/script&gt;
  &lt;!-- Separate Popper and Bootstrap JS --&gt;
  &lt;script 
  src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js&quot; 
  integrity=&quot;sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p&quot; 
  crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js&quot; 
  integrity=&quot;sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT&quot; 
  crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
  &lt;!-- datepicker --&gt;
  &lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/bootstrap- 
  datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js&quot; integrity=&quot;sha512- 
  GDey37RZAxFkpFeJorEUwNoIbkTwsyC736KNSYucu1WJWFK9qTdzYub8ATxktr6Dwke7nbFai
  oypzbDOQykoRg==&quot; 
  crossorigin=&quot;anonymous&quot; referrerpolicy=&quot;no-referrer&quot;&gt;&lt;/script&gt;
  &lt;title&gt;Date Picker&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class=&quot;container&quot;&gt;
  &lt;div class=&quot;row&quot;&gt;
      &lt;div class='col-sm-6'&gt;
          &lt;div class=&quot;form-group&quot;&gt;
          &lt;div class='input-group date' id='datetimepicker1'&gt;
              &lt;input type='text' class=&quot;form-control&quot; /&gt;
              &lt;span class=&quot;input-group-addon&quot;&gt;
              &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;&lt;/span&gt;
              &lt;/span&gt;
          &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
      $(function () {
          $('#datetimepicker1').datetimepicker();
      });
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>