Python Forum

Full Version: Generating accounting transactions data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was attempting to generate accounting transactions data for three years. I tried to use Faker but I got stuck at line 68:
"Date": fake.date_between(start_date=datetime.date(f'{year}-{month}-1'), end_date=datetime.date(f'{year}-{month}-28')),
with the error:
TypeError: descriptor 'date' for 'datetime.datetime' objects doesn't apply to a 'str' object
The python code is attached.
Thanks