Python Format Current Datetime Sql Convert String To Int