>>5360282pretty much
>>5360277 answered that, but that's in IDW.
In the g1 cartoon it was just literally assigned to them, ironhide was old as prime because they said so and only once the comics came did any more info came.
If you're that worried you bought a fembot look at it, modern transformer toys are fucking obvious with the genders, and age is irrelevant, they're all millions of years old