Try two digits in the month.

On Mon, Oct 8, 2012 at 10:38 AM, David <[email protected]> wrote:

> Hello,
>
> I did update my my ledgerrc file.
>
> Below is the output of the .ledgerrc file;-
>
> home/david# cat .ledgerrc
> --input-date-format %d-%m-%Y
> --date-format %d-%m-%Y
>
> I cant seem to get the date format updated and keep getting the error as
> below
>
> Error: Year is out of valid range: 1400..10000
> While parsing file "Jan_to_Jun_Acct", line 1679:
> While parsing transaction:
> > 24/6/2012
>
>
> Even tried the following command:-
>
> ledger -f file_name --date-format=%m/%d/%Y --input-date-format=%m/%d/%Y
>
> But still haven’t been able to change the format.
>
> Any idea what I am missing?
>
>
> David
>
>
>
> On Monday, October 8, 2012 4:18:57 PM UTC+8, David wrote:
>>
>>
>> Thanks for the feedback.  This certainly helps me understand how my
>> .ledgerrc file should look.
>>
>> In the region where I reside we tend to write the dates as DD/MM/YYYY.
>>
>> So I guess my .ledgerrc should be :-
>>
>> --input-date-format %d-%m-%Y
>> --date-format %d-%m-%Y
>>
>>
>> Once again, thanks for all the input/feedback.
>>
>> David
>>
>>
>>
>>
>>
>> On Monday, October 8, 2012 2:25:24 AM UTC+8, thierry wrote:
>>>
>>> FWIW, here is mine:
>>>
>>> $ cat ~/.ledgerrc
>>> --decimal-comma
>>> --file /home/thierry/thierry.ledger
>>> --price-db /home/thierry/price.db
>>> --start-of-week=mon
>>> --current
>>>
>>> --
>>> Thierry
>>>
>>


-- 
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

Reply via email to