# 🗓 \[FREE Plugin\] Air Date/Time Picker

**URL:** <https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328>\
**Category:** Showcase\
**Created:** [June 11, 2017, 7:53pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328 "2017-06-11T19:53:50Z")\
**Posts on this page:** 20\
**Page:** 25

<div class="post-metadata">

**Author:** ![laurence](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/laurence/32/24296_2.png) [@laurence](https://forum.bubble.io/u/laurence)\
**Post date:** [November 8, 2019, 11:13pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/491 "2019-11-08T23:13:17Z")

</div>

@seanhoots,

I’m hoping you have some idea what the following error might mean. I don’t think I can file a bug report with Bubble since it clearly involves Are Date/Time Picker.

It is a “General” error:  
“Sorry, we have encountered an unexpected error. Please file a bug report (Help → Report a bug), including error code 1573254799354x425265745402570560 and a step-by-step explanation of how to reproduce this issue.”

It is happening on a popup within a reusable element.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/4/a4dc9f161686a60a3bfb39675d890c5c99965f78.png)

The error appears immediately after either of the Air Date/Time Pickers is clicked. (there has been no opportunity to click on anything in the date/time picker window yet)  
It only happens the first time either picker is clicked.

I realize this is a long shot since I cannot readily share this app and you have other fish to fry. But if you can offer any insight, I’d be grateful.

---

<div class="post-metadata">

**Author:** ![drewkirkproductions](https://avatars.discourse-cdn.com/v4/letter/d/439d5e/32.png) [@drewkirkproductions](https://forum.bubble.io/u/drewkirkproductions)\
**Post date:** [November 21, 2019, 6:13pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/492 "2019-11-21T18:13:13Z")

</div>

Is there a specific way to set this up? I’m just seeing a rectangle box that does nothing when you click it? ![13](https://us1.discourse-cdn.com/bubble/original/3X/3/b/3b84154be2340e059741fec49ce22866f606da3b.png)

---

<div class="post-metadata">

**Author:** ![brian2](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@brian2](https://forum.bubble.io/u/brian2)\
**Post date:** [November 26, 2019, 3:59pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/493 "2019-11-26T15:59:39Z")

</div>

Was working fine, but now air date/time picker does not work when its in a popup.

It appears to maybe be a z-index thing. crazy enough if I add another plugin for selecting dates to the same page it brings up the air date/time picker but its blurred out by the blur on the popup.

Not sure if having multiple date pickers on the same page may also be affecting it.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![joe5](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/joe5/32/21213_2.png) [@joe5](https://forum.bubble.io/u/joe5)\
**Post date:** [December 3, 2019, 3:10am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/494 "2019-12-03T03:10:31Z")

</div>

I am also getting this issue in a popup. @seanhoots?

---

<div class="post-metadata">

**Author:** ![tamas.somogyi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tamas.somogyi/32/207054_2.png) [@tamas.somogyi](https://forum.bubble.io/u/tamas.somogyi)\
**Post date:** [December 8, 2019, 2:36pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/495 "2019-12-08T14:36:30Z")

</div>

Hi @seanhoots,

Was the hungarian language added later? I’m starting to use this now and can’t see hungarian as an option.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/0/803105b823e6077a3bac4b9ec84209404901272c.png)

Thanks for the plugin anyways!

Tamas

---

<div class="post-metadata">

**Author:** ![msamandadianne](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/msamandadianne/32/194705_2.png) [@msamandadianne](https://forum.bubble.io/u/msamandadianne)\
**Post date:** [January 2, 2020, 11:36pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/496 "2020-01-02T23:36:08Z")

</div>

Instead of a placeholder, is it possible to have an icon?

I can do it with a group focus and have the picker always inline. It’s just that the always inline has a border that I don’t like.

---

<div class="post-metadata">

**Author:** ![miguel](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@miguel](https://forum.bubble.io/u/miguel)\
**Post date:** [January 5, 2020, 2:18pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/497 "2020-01-05T14:18:05Z")

</div>

Hi!

Is there a way to know the start & end visible dates of the picker? This way we can for example get a list of blocked dates from the DB (but constraining the Search using those visible dates).

Ideally these 2 dates would be exposed as state values.

Thanks and great plugin!

---

<div class="post-metadata">

**Author:** ![miguel](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@miguel](https://forum.bubble.io/u/miguel)\
**Post date:** [January 11, 2020, 6:11pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/498 "2020-01-11T18:11:42Z")

</div>

would it be possible @seanhoots?

Regards.

---

<div class="post-metadata">

**Author:** ![janjofe](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@janjofe](https://forum.bubble.io/u/janjofe)\
**Post date:** [January 13, 2020, 6:26pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/499 "2020-01-13T18:26:29Z")

</div>

Hello! great plugin here, I’m trying to get the date range in between two time inputs. Like a clock-in type function. For example I want user’s to clock in (time picker range :start) and then clock out (Time picker range :end) and then get back the amount of time they worked for. Ex: Clock in 7am- clock out 4pm = range 9 hours.  
Is this possible? Thanks!

---

<div class="post-metadata">

**Author:** ![janjofe](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@janjofe](https://forum.bubble.io/u/janjofe)\
**Post date:** [January 13, 2020, 6:26pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/500 "2020-01-13T18:26:48Z")

</div>

@seanhoots

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [January 14, 2020, 2:43am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/501 "2020-01-14T02:43:18Z")

</div>

Subtracting one date from another will result in a datatype that Bubble calls a “date interval” (a duration of time) which you can format to show the amount of time in various ways. Check out the reference on date intervals (it’s skimpy but helpful).

You might also just convert Date1 and Date2 to their Unix time values using :format as… Unix. (This results in a number, surprisingly, not a text.) Subtracting the earlier date from the later date will return the number of milliseconds between them and you could convert that to some human friendly format.

---

<div class="post-metadata">

**Author:** ![tim12333](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tim12333/32/260227_2.png) [@tim12333](https://forum.bubble.io/u/tim12333)\
**Post date:** [January 14, 2020, 2:52pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/502 "2020-01-14T14:52:57Z")

</div>

I’m having the same problem. Any solutions?

---

<div class="post-metadata">

**Author:** ![tim12333](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tim12333/32/260227_2.png) [@tim12333](https://forum.bubble.io/u/tim12333)\
**Post date:** [January 14, 2020, 5:54pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/503 "2020-01-14T17:54:04Z")

</div>

For anyone else having a problem with the datepicker not working in a popup - add this css to your page.

**.datepicker {**  
**z-index: 100000;**  
**}**

---

<div class="post-metadata">

**Author:** ![rentabl](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rentabl](https://forum.bubble.io/u/rentabl)\
**Post date:** [January 16, 2020, 3:17pm UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/504 "2020-01-16T15:17:25Z")

</div>

@tim12333 - How can I add a CSS to my page? I’ve been looking around but I’m not very knowledgeable in html or JS so i don’t understand too much those things…

Any help would be much appreciated! Thanks!

---

<div class="post-metadata">

**Author:** ![tim12333](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tim12333/32/260227_2.png) [@tim12333](https://forum.bubble.io/u/tim12333)\
**Post date:** [January 17, 2020, 3:12am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/505 "2020-01-17T03:12:21Z")

</div>

Download the plugin called CSStools. Then add the cssTools element to your page (can be anywhere its not visible).

Next add a workflow that happens when the page is loaded. In that workflow add the event called Add CSS to page header (or something like that, should be under element actions)

Inside that event, put that CSS from my previous post.

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [January 17, 2020, 4:05am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/506 "2020-01-17T04:05:18Z")

</div>

Wait… this is funny. So, Air Date Picker is properly coded (it works in pop ups) but sets an explicit z-index (for something somewhere, e.g., the canvas… or maybe the first child of the canvas?) and so is present but obscured in pop ups?

---

<div class="post-metadata">

**Author:** ![tim12333](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tim12333/32/260227_2.png) [@tim12333](https://forum.bubble.io/u/tim12333)\
**Post date:** [January 17, 2020, 4:54am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/507 "2020-01-17T04:54:19Z")

</div>

I’m glad you said something Keith. I just tried my fix, and it’s not working.

It works the first time the popup is opened, then it doesn’t anytime after.

The weird thing is, the datepicker works fine if the developer console is open (only if the console was open on page load).  
 ![vid](https://us1.discourse-cdn.com/bubble/original/3X/a/c/accc70ef9d41204392bfbc96422dad36251715c4.gif)

You can see the datepicker is visible for a second when I close out of the popup. It seemed like a z-index problem.

I guess when I tested my fix, I had the dev console open.

---

<div class="post-metadata">

**Author:** ![tim12333](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tim12333/32/260227_2.png) [@tim12333](https://forum.bubble.io/u/tim12333)\
**Post date:** [January 17, 2020, 5:32am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/508 "2020-01-17T05:32:25Z")

</div>

Was wondering where this problem came from, as I had never noticed it before.

I had turned on a grey-out blur on my popup a couple weeks ago. I turned that off and then everything **was working fine**. Turned it back on, and the datepicker was not working again.

Apparently when you have grey-out blur on, Bubble applies a css blur filter to all other elements (I guess this is the best way to do it?) Well apparently that was messing with the datepicker z-index somehow.

I found the z-index of the datepicker’s parent element needed to be changed. After I did that, the picker was displaying correctly, but the blur filter was being added to the datepicker.

So now here’s the new CSS fix.  
**.datepickers-container {**  
**z-index: 100000;**  
**filter: none !important;**  
**}**

---

<div class="post-metadata">

**Author:** ![rentabl](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@rentabl](https://forum.bubble.io/u/rentabl)\
**Post date:** [January 17, 2020, 9:41am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/509 "2020-01-17T09:41:02Z")

</div>

Thanks @tim12333!

And it works!!

---

<div class="post-metadata">

**Author:** ![msamandadianne](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/msamandadianne/32/194705_2.png) [@msamandadianne](https://forum.bubble.io/u/msamandadianne)\
**Post date:** [January 23, 2020, 12:24am UTC](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328/510 "2020-01-23T00:24:36Z")

</div>

Do you know of a solution for this problem on a group focus? Thanks!  
This CSS code method doesn’t seem to be working.  
I’ve noticed that it only happens when clicking in the upper area to change the year or month. But when you click in the calendar grid to select the year, month or day area it stays open.

[Previous page](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328.md?page=24)

[Next page](https://forum.bubble.io/t/free-plugin-air-date-time-picker/14328.md?page=26)
