public static String currentDefaultFormattedTimeStamp ( ) { try { SimpleDateFormat sdf = new SimpleDateFormat ( DEFAULT_TIME_STAMP_FORMAT ) ; return sdf . format ( new Date ( ) ) ; } catch ( IllegalArgumentException e ) { SimpleDateFormat sdf = new SimpleDateFormat ( SAFE_TIME_STAMP_FORMAT ) ; return sdf . format ( new Date ( ) ) ; } }
Gets the current time stamp based on the DEFAULT format . The DEFAULT format is defined in Messages . properties .