Two issues at hand here!
I don't catch much of a similarity, although my experience is limited to one test spray of each. Chic is fruity, I find, before turning into a sort of amber-coca cola finish. Code isn't fruity as such - I didn't much like it off the top, should retest - but turns to a smooth tonka-full base.
I do like Chic, definitely. I reckon its bottle-worthy, and the bottle is pretty sweet. As for when to wear it, I'd wear it on most occasions - casual, maybe for a drink in the evening? It's about how you feel at the end of the day.