Java Date Now getCurrentDateFormated()

Here you can find the source of getCurrentDateFormated()

Description

Formats only current time into String.

License

Apache License

Return

String type value of formatted date

Declaration

public static String getCurrentDateFormated() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    /**//  www  .  j  a  v  a  2 s  . co  m
     * Formats only current time into <code>String</code>.
     * Example of formatted date 19:27:32 Wed, 14 Oct 2015
     *
     * @return <code>String</code> type value of formatted date
     */
    public static String getCurrentDateFormated() {
        return new SimpleDateFormat("HH:mm:ss EEE, dd MMM yyyy").format(new Date());
    }
}

Related

  1. getCurrentDateAsString(DateFormat df)
  2. getCurrentDateAsString(String timestampFormat)
  3. getCurrentDateByString(String datePattern)
  4. getCurrentDateDBFormat()
  5. getCurrentDateFormat()
  6. getCurrentDateInMillis()
  7. getCurrentDateInSqlFormat()
  8. getCurrentDateINYYYY_MM_DD()
  9. getCurrentDateInyyyyMMddFormat()