Java tutorial
import java.text.SimpleDateFormat; import java.util.Locale; public class Main { public static void main(String[] args) throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("dd-MMMM-yyyy", Locale.ENGLISH); System.out.println(sdf.parse("29-July-2012")); } }