Java Now getDisplayDateNow()

Here you can find the source of getDisplayDateNow()

Description

get Display Date Now

License

LGPL

Declaration

public static String getDisplayDateNow() 

Method Source Code

//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;
    }
}

Related

  1. formatNow(String fmt)
  2. formatNow(String pattern)
  3. formatNow(String style)
  4. formatTime(Date now, String pattern)
  5. getAllnowTime()
  6. getFormatNowDateTime(String formatStr)
  7. getFormattedDateNow(@Nonnull final String sFormat)
  8. getInviteCodeByNowDate()
  9. getShortNowTime()