# Save in original format The following example demonstrates how to save file in its original format with current date as a suffix: {{< tabs "code-example-save-in-original-format" >}} {{< tab "save_in_original_format.js" >}} ```js const redaction = require('@groupdocs/groupdocs.redaction'); const redactor = new redaction.Redactor('sample.docx'); try { // Here we can use document instance to perform redactions redactor.apply(new redaction.ExactPhraseRedaction('John Doe', new redaction.ReplacementOptions('[personal]'))); const saveOptions = new redaction.SaveOptions(); saveOptions.setAddSuffix(true); saveOptions.setRasterizeToPDF(false); saveOptions.setRedactedFileSuffix(new SimpleDateFormat('dd-MM-yyyy').format(new Date())); // Saving in original format with date as DateTime.getNow().toShortDateString()a suffix redactor.save(saveOptions); } finally { redactor.close(); } ``` {{< /tab >}} {{< tab "sample.docx" >}} {{< tab-text >}} `sample.docx` is the sample file used in this example. Click [here](https://docs.groupdocs.com/redaction/nodejs-java/_sample_files/developer-guide/advanced-usage/saving-documents/save-in-original-format/sample.docx) to download it. {{< /tab-text >}} {{< /tab >}} {{< tab "sample_19-11-2026.docx" >}} ```text Binary file (DOCX, 16 KB) ``` [Download full output](https://docs.groupdocs.com/redaction/nodejs-java/_output_files/developer-guide/advanced-usage/saving-documents/save-in-original-format/CodeExampleSaveInOriginalFormat/sample_19-11-2026.docx) {{< /tab >}} {{< /tabs >}}