I'd tentatively suggest it's being used as an adjective whether you write 'I took my three-year-old to the cinema' or 'I took my three-year-old daughter to have her hair cut'. The first simply omits the noun that the adjective is describing.
Usually I hyphenate words which are used together as an adjective, because they are not separate adjectives but perform as one adjective when used together.
In the case where it really is a noun I think usually not hyphenated, but as I say I don't think this is a true example of that. And I wish I could think of a true example of this to make my point.
I'm basing this on what we did when I sub-edited for two sister magazines. I did write the style guide
, but my boss and I would argue and research every point we were unsure of when we put the style guide together, so it had merit.
Deb