I have a code like -
from datetime import date
today = date.today()
sql_command = "select * from [dbo].[DB_Name] where DT like " + str(today) + '%'
But I want my string to look like this -
select * from [dbo].[DB_Name] where DT like 'today%'
I am strugling to put quotes on the date - it should be '2021-01-11%'. How can I do it? I have tried to format the today first but i am unable to do it.