<?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>DEV Community: Daniele Rugginenti</title>
    <description>The latest articles on DEV Community by Daniele Rugginenti (@daniele_rugginenti_fecc8b).</description>
    <link>https://dev.to/daniele_rugginenti_fecc8b</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%2F2110779%2Fb3041252-9d6b-4ef0-ac19-858e84450445.jpg</url>
      <title>DEV Community: Daniele Rugginenti</title>
      <link>https://dev.to/daniele_rugginenti_fecc8b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daniele_rugginenti_fecc8b"/>
    <language>en</language>
    <item>
      <title>Elevate Your Date Selection with DeskyCalendar: A Vanilla JS Solution</title>
      <dc:creator>Daniele Rugginenti</dc:creator>
      <pubDate>Sun, 22 Sep 2024 23:10:53 +0000</pubDate>
      <link>https://dev.to/daniele_rugginenti_fecc8b/elevate-your-date-selection-with-deskycalendar-a-vanilla-js-solution-50h4</link>
      <guid>https://dev.to/daniele_rugginenti_fecc8b/elevate-your-date-selection-with-deskycalendar-a-vanilla-js-solution-50h4</guid>
      <description>&lt;p&gt;Looking to enhance your forms without the fluff? Meet DeskyCalendar, a minimalist, responsive date picker crafted in pure vanilla JavaScript. It's designed to add style and functionality to your date selection process without weighing down your project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo and project page
&lt;/h2&gt;

&lt;p&gt;demo page -&amp;gt; &lt;a href="https://danruggi.github.io/datepicker/" rel="noopener noreferrer"&gt;https://danruggi.github.io/datepicker/&lt;/a&gt;&lt;br&gt;
project link -&amp;gt; &lt;a href="https://github.com/danruggi/datepicker" rel="noopener noreferrer"&gt;https://github.com/danruggi/datepicker&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;p&gt;📳 Full Responsive: Looks great on any device—no more squished calendars.&lt;br&gt;
🌱 Double / Single Format: Choose between selecting a single date or a range with ease.&lt;br&gt;
🍀 Add "Any Date" Option: Allow users the freedom to select any date, perfect for filters and reports.&lt;br&gt;
🔒 Disable Dates: Prevent selections for past or future dates, keeping everything in check.&lt;br&gt;
📎 Execute External Function on Click: Want to trigger a custom action when a date is selected? Easy peasy!&lt;br&gt;
Quick Setup&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Include CSS and JS
&lt;/h2&gt;

&lt;p&gt;Just drop these links into your HTML:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;link rel='stylesheet' href='https://cdn.jsdelivr.net/gh/danruggi/datepicker/css/deskyCal.css' onload="this.media='all'"&amp;gt;&lt;br&gt;
&amp;lt;script type="text/javascript" src="https://cdn.jsdelivr.net/gh/danruggi/datepicker/js/deskyCal.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Add Your Input
&lt;/h2&gt;

&lt;p&gt;Create an input field:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;input id='myID'&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Initialize the Calendar
&lt;/h2&gt;

&lt;p&gt;Set it up with a simple line of JavaScript:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;new DeskyCalendar({'myID': {}});&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Minimal Examples
&lt;/h2&gt;

&lt;h4&gt;
  
  
  Two Columns
&lt;/h4&gt;

&lt;p&gt;Easily switch to a double date selection:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;new DeskyCalendar({'calendar_date_selector1': {mode: "double"}});&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Disable Dates
&lt;/h4&gt;

&lt;p&gt;Want to restrict dates? Just add&lt;/p&gt;

&lt;p&gt;&lt;code&gt;const d = new Date();&lt;br&gt;
new DeskyCalendar({'calendar_date_selector2': {disableBefore: d}});&lt;br&gt;
Conclusion&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;With just a couple of lines, DeskyCalendar brings sophistication and simplicity to your date selection needs, all while being lightweight and efficient. It’s time to level up your forms with this elegant solution. Happy coding!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
