My pediatrician said that green poop in itself is nothing to worry about, if apart from that all is fine (no vomits/diarrhea). In can be due to your diet. My 10days baby had a green poop for a week and then it went back to yellow. If he doesn't poop, this is probably dehydration as suggested by Aysha.