← All Scripts

#63 - Date Range Picker v0.1

Create a date range input in Webflow!

Need help with this MemberScript?

All Memberstack customers can ask for assistance in the 2.0 Slack. Please note that these are not official features and support cannot be guaranteed.

View demo

<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
  .daterangepicker td.active {
    background-color: #006cfa !important ;
<script type="text/javascript">
$(function() {

      "opens": "center",
      "locale": {
        "format": "MM/DD/YYYY",
        "separator": " - ",
        "applyLabel": "Apply",
        "cancelLabel": "Cancel",
        "fromLabel": "From",
        "toLabel": "To",
        "customRangeLabel": "Custom",
        "weekLabel": "W",
        "daysOfWeek": [
        "monthNames": [

  $('input[name="datefilter"]').on('apply.daterangepicker', function(ev, picker) {
      $(this).val(picker.startDate.format('MM/DD/YYYY') + ' - ' + picker.endDate.format('MM/DD/YYYY'));

  $('input[name="datefilter"]').on('cancel.daterangepicker', function(ev, picker) {

No items found.

Creating the Make.com Scenario

1. Download the JSON blueprint below to get stated.

2. Navigate to Make.com and Create a New Scenario...

3. Click the small box with 3 dots and then Import Blueprint...

4. Upload your file and voila! You're ready to link your own accounts.

How to Add a Date Range Selector to your Webflow Form

Memberscripts needed:

  1. https://www.memberstack.com/scripts/63-date-range-picker





Why/When Would You Need to Add a Date Range Selector to your Webflow Form?

  1. Provide users with a date range selector for booking flights, rooms, setting up appointments, or anything else that requires them to specify a date range.

Depending on the type of business you’re running and what you’re selling, you may need users to provide you with a date range.

Whether it’s for booking flights, rooms, setting up appointments or anything else, we’re going to look at how to add a date range selector to your Webflow form.

Adding a date range selector to Webflow forms

To add a price range selector to a Webflow form, we’re going to use MemberScript #63 – Date Range Picker. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.

Setting it up

The first thing you’ll need to do is build out the form itself and style it however you want.

Then, go ahead and add a regular text input field which you won’t need to style because it’ll just be replaced date range picker. Then add the following attribute to it:

  • ms-code-input=”date-range”

Making it work

Now that you’ve got the form set up and you’ve added the field for the date range picker, all you need to do is add the MemberScript #63 custom code to your page, before the closing body tag.

Here are a few things you can change in the custom code:

  • Selection color – to change the color of the selected days, just replace the HEX value of background-color.
  • Localization – to localize your date range picker, simply edit the text strings for the days, date format, button labels, etc.

Additionally, if you want to change the button colors, those are defined by the .btn CSS class.


That’s everything, you can now go ahead and test your form’s date range selector feature.

If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.

Our demo can help you add a date range selector to your Webflow forms.

Take me to the Script!