Simple code to Display Month of Date ,from int(means in the form of String) to String..(e.G:2->February) Android

String date="11/11/2011";///(String) android.text.format.DateFormat.format("MM-dd-yyyy", new java.util.Date());
        System.out.println("-------Given Date---"+date);
        //Converting String type to Date..
        SimpleDateFormat df = new SimpleDateFormat("MM-dd-yyyy");
        Date date1=null;
        try {
            date1 = df.parse(date);///Converting the given String to Date dataType..
        } catch (ParseException e) {
        String updateDate=(String) android.text.format.DateFormat.format("MMMM dd yyyy", date1);


Popular posts from this blog

Custom Dialog with no title and full screen in Android

code to display .pdf,.text,.DOC,.DOCX,.doc extension files exists in SDCard

Best working code to set Date limits on Date Picker Dialog,in Android