Here you can find the source of getCurrentDateFormated()
String
.
String
type value of formatted date
public static String getCurrentDateFormated()
//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()); } }