Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public class Main { private static SimpleDateFormat dataFormat; public static int getIntDateValue() { dataFormat = new SimpleDateFormat("MMdd", Locale.KOREA); Date date = new Date(); int today = Integer.parseInt(dataFormat.format(date)); return today; } }