Sep-22-2023, 09:00 AM
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
"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