I'm trying to get a date from this next select in python
select MAX(PAYMENT_DATE) from fact_cashflow
WHERE DOCUMENT_ID = 'SALDO FINAL' and PAYMENT_AMOUNT > 0
But my answer on the console is this
(datetime.date (2017, 2, 1))
I would like the date to be formatted in '2017-02-01'
How do I do it?