Here you can find the source of getCurrentDateline()
public static String getCurrentDateline()
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; public class Main { public static String getCurrentDateline() { DateFormat tempDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return tempDate.format(new java.util.Date()); }/*from w w w . j a v a 2 s. co m*/ }