I have a code like -
from datetime import date today = date.today() sql_command = "select * from [dbo].[DB_Name] where DT like " + str(today) + \'%\