Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Locale; public class Main { public static final String getStandardDate(int day, int month, int year) { SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA); Calendar calendar = Calendar.getInstance(); calendar.set(year, month, day); return format.format(calendar.getTime()); } }