Date Picker

One of the items that the IDEAScripting dialog lacks is a date picker.  I recently saw a post on the IDEA forum that they had the script for one but for some strange reason weren't releasing it on the scripting section, so I decided to try and create a date picker for my use and anyone else that wants to use it.

The attached script has the code for the date picker along with an example of how to use it with a dialog that asks for the user to enter a date.

When you start up the example script you will have a dialog with two edit boxes where the user can enter a date:

Example of using a date picker

To access the date picker in this instance you would click on the Calendar button and another dialog will open on top of the first dialog.

Date Picker

Using the date picker you can select your date, the < and > will move you through the months.  Clicking on the Current Date button will take you back to the current date.  There is a drop down that shows the current year and 5 years forward and 5 years back.  So you can move through the years if 5 year increments.

Date Picker with year

Once you select a date the date picker dialog will close and the date will be inserted in the edit box.

Date picker with date

The code allows for multiple date edit boxes but each one would need a separate button.  The code was been commented and if you have any questions or comments please let me know.  You can download the code here.

Updated March 4, 2015 - Added functionality so the script should work with different regional settings and date formats.


Hello. I'm sorry to bother, but the download link is not available. Thanks.

Brian Element's picture

It is actually there but just hidden in the text.  Here is the link