<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Atanas Atanasov</title>
    <description>The latest articles on Forem by Atanas Atanasov (@atatanasov).</description>
    <link>https://forem.com/atatanasov</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F990663%2F28e74519-20d8-4262-a478-7335d4ac44f8.jpeg</url>
      <title>Forem: Atanas Atanasov</title>
      <link>https://forem.com/atatanasov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/atatanasov"/>
    <language>en</language>
    <item>
      <title>Datepicker Bootstrap 5</title>
      <dc:creator>Atanas Atanasov</dc:creator>
      <pubDate>Wed, 04 Jan 2023 10:18:06 +0000</pubDate>
      <link>https://forem.com/atatanasov/bootstrap-5-datepicker-i9c</link>
      <guid>https://forem.com/atatanasov/bootstrap-5-datepicker-i9c</guid>
      <description>&lt;h2&gt;
  
  
  What is Bootstrap Datepicker?
&lt;/h2&gt;

&lt;p&gt;Datepicker is a javascript component that adds the function of selecting date without the necessity of writing custom JavaScript code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;We are going to use in this article installation via CDN. All installation methods are available on our &lt;a href="https://gijgo.com/Download" rel="noopener noreferrer"&gt;Downloads&lt;/a&gt; page. In order to install bootstrap 5 datepicker you need to copy the latest css and javascript libraries from &lt;a href="https://cdn.jsdelivr.net/npm/gijgo@latest/" rel="noopener noreferrer"&gt;jsdeliver&lt;/a&gt;, &lt;a href="https://unpkg.com/gijgo@latest/" rel="noopener noreferrer"&gt;unpkg&lt;/a&gt; or &lt;a href="https://cdnjs.com/libraries/gijgo" rel="noopener noreferrer"&gt;cdnjs&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script src="https://code.jquery.com/jquery-3.3.1.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"&amp;gt;
&amp;lt;script src="https://cdn.jsdelivr.net/npm/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;link href="https://cdn.jsdelivr.net/npm/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Basic Example&lt;/strong&gt;&lt;br&gt;
In our basic example we are going to show how to use our default bootstrap 5 configuration without any customizations.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;input id="datepicker" width="276" /&amp;gt;
&amp;lt;script&amp;gt;
$('#datepicker').datepicker({ uiLibrary: 'bootstrap5' });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Customization&lt;/strong&gt;&lt;br&gt;
You can find all configuration options for the datepicker &lt;a href="https://gijgo.com/datepicker/configuration" rel="noopener noreferrer"&gt;here&lt;/a&gt;. In the example below you can see how to control the format of the date in the datepicker.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;input id="datepicker" value="2022-25-07" width="312" /&amp;gt;
&amp;lt;script&amp;gt;
$('#datepicker').datepicker({ uiLibrary: 'bootstrap5', format: 'yyyy-dd-mm' });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Localization&lt;/strong&gt;&lt;br&gt;
Our datepicker support more than 15 languages and the list is growing. You can find the full list at our &lt;a href="https://gijgo.com/datepicker/configuration/locale" rel="noopener noreferrer"&gt;locale&lt;/a&gt; configuration page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;input id="datepicker" value="2022-25-07" width="312" /&amp;gt;
&amp;lt;script&amp;gt;
$('#datepicker').datepicker({ uiLibrary: 'bootstrap5', locale: 'es-es' });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://gijgo.com/datepicker/example/bootstrap-5" rel="noopener noreferrer"&gt;Bootstrap 5 Datepicker&lt;/a&gt; example&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://gijgo.com/datepicker" rel="noopener noreferrer"&gt;Gijgo Datepicker&lt;/a&gt; documentation page&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://getbootstrap.com/docs/5.3/getting-started/introduction/" rel="noopener noreferrer"&gt;Bootstrap 5&lt;/a&gt; documentation page&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>watercooler</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
