public static final Function<Date,String> toStr(final String pattern, final Locale locale) {
        return new ToString(pattern, locale);
    }
public static final Function < Date , String > toStr ( final String pattern , final Locale locale ) { return new ToString ( pattern , locale ) ; }
<p>
Converts the target Date into a String using the specified <tt>pattern</tt>.
The pattern has to be written in the <tt>java.text.SimpleDateFormat</tt> format,
and the specified locale will be used for text-based pattern components (like
month names or week days).
</p>

@param pattern the pattern to be used, as specified by <tt>java.text.SimpleDateFormat</tt>.
@param locale the locale to be used for text-based pattern components
@return the String representation of the target Date.