Can some one help me with the below,
1) Is it possible to create a provider that will list years alone.
2) How to get year from calendar().currentDate()
The simplest one first, 2)
date has a "year" property. To get the year from calendar().currentDate():
theYear is an integer initially calendar().currentDate().year; // 2011
For question 1)
A provider that lists years alone is effectively only a list of numbers. A plain list provider is not enough? Do you have specific requirements regarding the range of years to present?
Retrieving data ...