Java tutorial
//package com.java2s; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; public class Main { public static Calendar dateShortBrToCalendar(String data) throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("MMM/yyyy", Locale.getDefault()); Date date = sdf.parse(data); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); return calendar; } }