List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development

Monday, April 16, 2012

Date Picker in Blackberry

























  1.  Calendar _dateCal=Calendar.getInstance();
                 SimpleDateFormat sdform = new SimpleDateFormat("MMM dd,yyyy");
                 final DateTimePicker datePicker = DateTimePicker.createInstance( _dateCal, "dd-MMM-yyyy", null);
                 if(datePicker.doModal()){
                          _dateStr = new StringBuffer();
                        _dateCal = datePicker.getDateTime();
                         sdform.format(_dateCal, _dateStr, null);
                         Dialog.alert("You selected " + _dateStr.toString());
                       }






        

No comments:

Post a Comment