Postgresql Return Date As String Python Functions W3schools