1年龄作定语的时候,中间接连接线,比如:他是一个20岁的男孩应写为

heisa20-year-oldboy.

2当年龄作状语的时候,不加连接线,如:她今年20岁写为

sheis20yearsold.

当然楼上的写法也都对,attheageof也经常用,如mygrandmaisattheageof86.但是myageis20这种不是很常用。