<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Stephen Pearce on Medium]]></title>
        <description><![CDATA[Stories by Stephen Pearce on Medium]]></description>
        <link>https://medium.com/@stephenpearce?source=rss-11e68b98647a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Stephen Pearce on Medium</title>
            <link>https://medium.com/@stephenpearce?source=rss-11e68b98647a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 12:19:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@stephenpearce/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A date range solution for Pickadate.js]]></title>
            <link>https://medium.com/sidekick-digital/a-date-range-solution-for-pickadate-js-a99dc8bae24a?source=rss-11e68b98647a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a99dc8bae24a</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[interaction-design]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Stephen Pearce]]></dc:creator>
            <pubDate>Tue, 06 Dec 2016 09:40:26 GMT</pubDate>
            <atom:updated>2017-05-31T08:31:26.716Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Y3PxqfNFF2so7O4B7JuDcg.png" /></figure><p>I’m writing today to share a solution to a date picking problem we recently encountered.</p><p>To set the scene, a project we recently worked on had two date inputs representing a range. What we needed was a date picker solution to provide not only the core functionality but ideally the ability to select a date range too.</p><p>We evaluated a variety of tools and settled upon the jQuery plugin <a href="http://amsul.ca/pickadate.js/">Pickadate.js</a>. We like Pickadate because:</p><ul><li>We love its contemporary aesthetic. It feels right at home with our designs.</li><li>It’s responsive, so it looks and feels great on a wide variety of devices.</li><li>It has a documented <a href="http://amsul.ca/pickadate.js/api/">API</a> with event hooks for tweaking functionality.</li></ul><p>What Pickadate.js lacks out of the box it makes up for in its rich API. You see, while the plugin doesn’t officially support date ranges, you can play with its API to achieve something similar.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fsidekickdigital%2Fembed%2Fpreview%2FKNomYq%3Fheight%3D600%26amp%3Bslug-hash%3DKNomYq%26amp%3Bdefault-tabs%3Djs%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fsidekickdigital%2Fpen%2FKNomYq%2F&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F957543.KNomYq.small.f5841ef0-8406-4f0c-89b5-4ec605163bd6.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/d824a66169b3ee52daf641e384b945c4/href">https://medium.com/media/d824a66169b3ee52daf641e384b945c4/href</a></iframe><p>I’ve created two instances of Pickadate.js here. One on input.js-date-from and the other on input.js-date-to. The second instance is triggered on the close() method of the former. A user can, of course, select either input on demand too.</p><p>The demo has a few rough edges for sure, but it demonstrates the idea.</p><p>Pickadate’s API allows for a great deal of custom functionality, such as disabling or highlighting particular dates — but it’s on the developer to make it work. Have a good read through the docs, think creatively and see for yourself what’s possible!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F643bac%3Fas_embed%3Dtrue&amp;url=https%3A%2F%2Fupscri.be%2F643bac%2F&amp;image=https%3A%2F%2Fupscri.be%2Fmedia%2Fform.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/4147c63633d4b12b909a955a7c52e417/href">https://medium.com/media/4147c63633d4b12b909a955a7c52e417/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a99dc8bae24a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sidekick-digital/a-date-range-solution-for-pickadate-js-a99dc8bae24a">A date range solution for Pickadate.js</a> was originally published in <a href="https://medium.com/sidekick-digital">Sidekick Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>