Skip to content

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

Open
@lestephane

Description

@lestephane

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-WISHSome kind of improvement request or proposal.csvThe csv file format, csv output format, or generally CSV-related.register

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions