Python日期格式化方法
import datetime
import
datetime
datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
datetime.datetime.now().strftime(
"%Y-%m-%d %H:%M:%S"
)
dt=datetime.now().strftime("%Y-%m-%d%H:%M:%S")
sql = "select * from mytable where DATE_FORMAT(start_time,' %Y-%m-%d ')