public boolean addCreationDate ( ) { try { /* bugfix by 'taqua' (Thomas) */ final SimpleDateFormat sdf = new SimpleDateFormat ( "EEE MMM dd HH:mm:ss zzz yyyy" ) ; return add ( new Meta ( Element . CREATIONDATE , sdf . format ( new Date ( ) ) ) ) ; } catch ( DocumentException de ) { throw new ExceptionConverter ( de ) ; } }
Adds the current date and time to a Document .