O'Reilly logo

Xamarin Studio for Android Programming: A C# Cookbook by Mathieu Nayrolles

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

Populating the datepicker

In many languages that offer graphical interaction with users, the datepickers are a nightmare, especially when you want to transform this data retrieve from the datapicker to process it in a database or business object. For example, in Java + Swing, you first have to pick the right Date object between java.util.date and java.sql.date and then try to manipulate them with the Calendar class, which doesn't offer the same level of abstraction as the Date object. Xamarin comes with a very simple way to handle the datepicker, and we will see how in this recipe.

Getting ready

To follow this recipe, create a new project in the same solution as the Populating Simple Object project and name it Populating Datepicker.

How to do it... ...

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