Here you can find the source of getCurrentStringDate(String pattern)
public static final String getCurrentStringDate(String pattern)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String getCurrentStringDate(String pattern) { Date currentTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat(pattern); return formatter.format(currentTime); }/*from w w w . j a va2s . c o m*/ }