Here you can find the source of formatMonth(String dateOrign)
public static String formatMonth(String dateOrign)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Locale; public class Main { public static String formatMonth(String dateOrign) { String dateString = ""; try {//ww w .j av a2 s . c o m dateString = new SimpleDateFormat("ddMMMyyyy", Locale.US) .format(new SimpleDateFormat("yyyy-MM-dd").parse(dateOrign)); } catch (Exception e) { // TODO: handle exception return ""; } return dateString; } }