Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static String getDateDay(long time) { SimpleDateFormat sdf = new SimpleDateFormat("dd"); String dt = sdf.format(time); return dt; } }