Here you can find the source of getDisplayDateNow()
public static String getDisplayDateNow()
//package com.java2s; /*/*from w ww. ja va 2s . com*/ * JLib - Publicitas Java library v1.2.0. * * Copyright (c) 2005, 2006, 2007, 2008, 2009 Publicitas SA. * Licensed under LGPL (LGPL-LICENSE.txt) license. */ import java.text.SimpleDateFormat; import java.util.Date; public class Main { private String format = "yyyy.MM.dd HH:mm:ss"; public static String getDisplayDateNow() { Date date = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); String cs = formatter.format(date); return cs; } }