Sometimes, if you don't drink adequate amount of fluids, u can have dark, greenish stools. If you are having some It on supplements, that can also result in greenish black discoloration.
Next Steps
Hydrate yourself well.
Health Tips
In case of very foul smelling stool, black stool or the one that sticks to the toilet seat, consult a Gastroenterology doctor