Epigenetic clocks based on DNA methylation have been known as biomarkers of aging, including principal component (PC) clocks representing the degree of aging and DunedinPACE representing the pace of aging. Prior studies have shown the associations between epigenetic aging and T2DM, but the results vary by epigenetic age metrics and people. This study explored the associations between epigenetic age metrics and T2DM or glycemic traits, based on 1070 twins (535 twin pairs) from the Chinese National Twin Registry. It also explored the temporal relationships of epigenetic age metrics and glycemic traits in 314 twins (157 twin pairs) who participated in baseline and follow‐up visits after a mean of 4.6 years. DNA methylation data were used to calculate epigenetic age metrics, including PCGrimAge acceleration (PCGrimAA), PCPhenoAge acceleration (PCPhenoAA), DunedinPACE, and the longitudinal change rate of PCGrimAge/PCPhenoAge. Mixed‐effects and cross‐lagged modelling assessed the cross‐sectional and temporal relationships between epigenetic age metrics and T2DM or glycemic traits, respectively. In the cross‐sectional analysis, positive associations were identified between DunedinPACE and glycemic traits, as well as between PCPhenoAA and fasting plasma glucose, which may be not confounded by shared genetic factors. Cross‐lagged models revealed that glycemic traits (fasting plasma glucose, HbA1c, and TyG index) preceded DunedinPACE increases, and TyG index preceded PCGrimAA increases. Glycemic traits are positively associated with epigenetic age metrics, especially DunedinPACE. Glycemic traits preceded the increases in DunedinPACE and PCGrimAA. Lowering the levels of glycemic traits may reduce DunedinPACE and PCGrimAA, thereby mitigating age‐related comorbidities.