Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Calendar; public class Main { private static Calendar getCurrentExpDate() { Calendar now = Calendar.getInstance(); now.set(now.get(Calendar.YEAR), now.get(Calendar.MONTH), 0, 0, 0); return now; } }