Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar convertTime(String year, String month, String day, String hour, String minute) { Calendar Time = Calendar.getInstance(); Time.set(Integer.parseInt(year), Integer.parseInt(month) - 1, Integer.parseInt(day), Integer.parseInt(hour), Integer.parseInt(minute)); return Time; } }