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