Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Date; public class Main { /** * @return Return current day timestamp with YY, MM, dd info ONLY */ public static Long getCurrentDateLong() { Date date = new Date(); long ss = date.getTime(); return ss; } }