Nifty Date Picker – With Year Selector

Nifty Date Picker – With Year Selector

Using a relatively unknown feature of a combobox, I have added a year selector to the Nifty Date Picker. It would be fairly simple to add a list of years into the combobox as a value list, but you would be stuck with a hard coded range of years. If you had an application where you were entering dates in the distant past or future, then it would be restrictive.

Overtime the value list of dates would become outdated and need to be updated to make it relevant again. Many years ago I came across the “Call Back Function” the example I saw was used to to display a list of years, exactly as I have duplicated here in my “Nifty Date Picker” I lost this example, and it only recently since seeing a YouTube by Crystal Long that I thought I should look at it again.

In Video 1 Below, I demonstrate both the “Year Picker” and the “Month Picker” both of which are based on “Call Back Functions”

In a future video I will explain the callback function how it works.

Nifty Date Picker – With Year Selector

Nifty Date Picker – With Year Selector

Video 1 (03:33)

This YouTube is a quick look at an implementation of the combobox Callback Function in action.

Video 1 (03:33)

Nifty Access YouTube Thumb Nail
Play Video

… …

More Useful Stuff HERE:-

Leave a comment

This website uses third-party software - WordPress Add-Ins to be exact. I don't know what any individual add-in does, but I'm sure that many of them collect information about you. So be aware, if you continue using this site, then you are likely to be sharing your information. I don't know how to disable this sharing for any, or all of the plugins for individual users. So I can't stop the sharing of information. If this worries you then please do not use this site... If you continue to use this site I will assume that you are happy with it.

Do you need a hand in the right direction?

You are in the right place.