From 53283217e95d1941c708817490e2ccf3574374a9 Mon Sep 17 00:00:00 2001 From: MarlousKottenhagen Date: Tue, 10 Oct 2023 06:50:32 +0000 Subject: [PATCH] xlsx-cli support dateFormat option (#3005) Co-authored-by: Marlous Kottenhagen Reviewed-on: https://git.sheetjs.com/sheetjs/sheetjs/pulls/3005 Co-authored-by: MarlousKottenhagen Co-committed-by: MarlousKottenhagen --- packages/xlsx-cli/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/xlsx-cli/index.js b/packages/xlsx-cli/index.js index d64852e..83be8b2 100644 --- a/packages/xlsx-cli/index.js +++ b/packages/xlsx-cli/index.js @@ -53,6 +53,7 @@ function run() { .option('-F, --field-sep ', 'CSV field separator', ",") .option('-R, --row-sep ', 'CSV row separator', "\n") .option('-n, --sheet-rows ', 'Number of rows to process (0=all rows)') + .option('--date-format ', 'output date format, for example yyyy-mm-dd') .option('--codepage ', 'default to specified codepage when ambiguous') .option('--req ', 'require module before processing') .option('--sst', 'generate shared string table for XLS* formats') @@ -148,6 +149,7 @@ function run() { } if (program.sparse) opts.dense = false; else opts.dense = true; if (program.codepage) opts.codepage = +program.codepage; + if (program.dateFormat) opts.dateNF = program.dateFormat; if (program.dev) { opts.WTF = true;