Here you can find the source of getTodayDateInString()
public static String getTodayDateInString()
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*w ww . j a v a 2s.co m*/ * returns today's date in DDMMYY format in string */ public static String getTodayDateInString() { String todaydate = new SimpleDateFormat("ddMMyy").format(new Date()); return todaydate; } }