Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static final int getDayByMill(long mill) { Date curDate = new Date(mill); Calendar calendar = Calendar.getInstance(); calendar.setTime(curDate); return calendar.get(java.util.Calendar.DAY_OF_MONTH); } }