Search This Blog

Thursday, 17 May 2012

How to integrate a DateField in Blackberry

Hello,
     Here is another simple one,how to use DateField in your app for user to select a particular date in a easy way.

Code:

DateField _date = new DateField("Select Date",System.currentTimeMillis(),DateField.DATE_TIME);

you can change the size of the datefield as i have described in my previous post,plus to align the text shown in DateField you can use DrawStyle.HCENTRE or whatever you want see below example:

Code:
DateField _date =new DateField(null,System.currentTimeMillis(),DateField.DATE_TIME|DrawStyle.HCENTER);



No comments:

Post a Comment