Code example for SimpleDateFormat

Methods: format

0
            outFile.println("tags:");
            outFile.println("author_email:");
            outFile.println("notes:Imported from AnyMemo");
            outFile.println("author_name:");
            outFile.println("card_set_name:" + deckName);
            Format formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            String dateString  = formatter.format(new Date());
            outFile.println("date:" + dateString);
            outFile.print("revision:1");
        } finally { 
            if (outFile != null) {
                outFile.close();
            } 
        } 
    } 
 
    @Override 
    public String getSrcExtension() {
        return "db"; 
    }