Search date in database then compare it to the date today

Hi, rookie here. can anyone help me on the development that I’m doing right now. I need a condition that

if date today = date in the database
read a certain file

Thanks in advance.

You can use datetime.parseexact method to compare both the dates

1 Like

Can you give me a sample code?