Android examples for java.util:Millisecond
get Last Thirty Days Start In Milliseconds
//package com.java2s; import java.util.Calendar; public class Main { private static final long dayInMilli = 86400000; public static long getLastThirtyDaysStartInMilli() { Calendar cal = Calendar.getInstance(); return cal.getTimeInMillis() - (dayInMilli * 30); }/*from w w w. j a va2 s . c om*/ }