O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a date picker

A datepicker is a widget designed to select a specific date choosing a month, a day, and a year from a predefined set of options. Using this widget, the developer can be sure to offer to the user a way for selecting a real date without errors. Another advantage of this widget is that it allows you the use of a predefined format for the date. Usually, some graphic interfaces are confusing for the user because it is difficult to find out which is the correct format required for the application. The date picker avoids this possible confusion using a clear way for selecting the components of a date: month, day, and year. Continue reading to find out how to create and use a date picker in our iPhone applications.

Getting ready ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required