Get latest ledger transaction's date only

#Content of ~/tmp/file.dat
2099/02/07 * acme
    Expenses:Groceries                                 $ 1
    Assets:Cash

2089/11/07 * foobar
    Expenses:Groceries                                 $ 4
    Assets:Cash

I want – from the account Assets:Cash and from the latest transaction (acme) – only the date.

I need the date formatted as Year-Month-Day.

ledger -f ~/tmp/file.dat reg \
       Assets:Cash \
       --tail 1 \
       --format %D \
       --date-format %Y-%m-%d
2099-11-07