hledger icon indicating copy to clipboard operation
hledger copied to clipboard

Q: is there a way to have date2 displayed in the hledger reg --output=csv export

Open lestephane opened this issue 5 years ago • 1 comments

The hledger hreg help says

With --date2, it shows and sorts by secondary date instead.

But i've been unable to have the date2 column show when doing a csv export.

For example with 2 journal entries with the following dates

2019/12/31=2020/01/02
    ...

2020/01/01=2020/01/02
   ...

Then the following command with --date2 correctly finds those

$ hledger reg -Ocsv --date2 Business-CY:Assets:Girokonto:Revolut:EUR date2:2020-01-02
"txnidx","date","code","description","account","amount","total"
"7500","2019/12/31",...
"7502","2020/01/01",...

But I need the effective date (date2) to be shown in the csv export.

So filtering seems to work, but only date is shown.

Is there a way to affect the csv output to include date2?

lestephane avatar Mar 04 '20 12:03 lestephane