public String getFormatedTimestamp()
    {
        if(date == null){return "";}
        
        StringBuilder sb = new StringBuilder();
        GregorianCalendar g = new GregorianCalendar();
        g.setTime(date);
        sb.append(String.valueOf(g.get(GregorianCalendar.YEAR))).append("-");
        sb.append(twoDigitFormat(g.get(GregorianCalendar.MONTH) + 1)).append("-");
        sb.append(twoDigitFormat(g.get(GregorianCalendar.DAY_OF_MONTH))).append(" ");
        sb.append(twoDigitFormat(g.get(GregorianCalendar.HOUR))).append(":");
        sb.append(twoDigitFormat(g.get(GregorianCalendar.MINUTE))).append(":");
        sb.append(twoDigitFormat(g.get(GregorianCalendar.SECOND)));
        
        return sb.toString();
    }
public String getFormatedTimestamp ( ) { if ( date == null ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; GregorianCalendar g = new GregorianCalendar ( ) ; g . setTime ( date ) ; sb . append ( String . valueOf ( g . get ( GregorianCalendar . YEAR ) ) ) . append ( "-" ) ; sb . append ( twoDigitFormat ( g . get ( GregorianCalendar . MONTH ) + 1 ) ) . append ( "-" ) ; sb . append ( twoDigitFormat ( g . get ( GregorianCalendar . DAY_OF_MONTH ) ) ) . append ( " " ) ; sb . append ( twoDigitFormat ( g . get ( GregorianCalendar . HOUR ) ) ) . append ( ":" ) ; sb . append ( twoDigitFormat ( g . get ( GregorianCalendar . MINUTE ) ) ) . append ( ":" ) ; sb . append ( twoDigitFormat ( g . get ( GregorianCalendar . SECOND ) ) ) ; return sb . toString ( ) ; }
<p>getFormatedTimestamp.</p>

@return a {@link java.lang.String} object.