[number (multiple of ten)] + 代 [number (multiple of ten)] + 代 + 前半/半ば/後半 [year (multiple of ten)] + 年代
~代 after a multiple of ten gives a decade of someone's life: 20代 is "in your twenties", 50代 "in your fifties". After a year and 年, it gives a decade of history: 1990年代 is "the 1990s".
An age decade is a noun. It takes の before another noun, and で for the age at which something happened.
The 代 in でんわだい電話代 ("phone bill") and しょくじだい食事代 ("cost of a meal") is a different suffix meaning a charge. It follows a noun for what you pay for, not a number.