Python Format Current Datetime Sql Convert Varchar To Int