src/org/kocakosm/pitaya/time/Dates.java
public static String format(Date date, String format)
	{
		Parameters.checkNotNull(date);
		return new SimpleDateFormat(format).format(date);
	}
public static String format(Date date, String format)
	{
		Parameters.checkNotNull(date);
		return new SimpleDateFormat(format).format(date);
	}
public static String format ( Date date , String format ) { Parameters . checkNotNull ( date ) ; return new SimpleDateFormat ( format ) . format ( date ) ; }
Returns the {@code String} representation of the given {@code Date}
according to the specified format pattern.

@param date the {@code Date} to format.
@param format the format pattern to use.

@return the {@code String} representation of {@code date}.

@throws NullPointerException if one of the arguments is {@code null}.
Returns the { @code String } representation of the given { @code Date } according to the specified format pattern .