Individuals with diabetes commonly experience Alzheimer disease and related dementias (ADRD). Factors such as hypoglycemia, hyperglycemia, and glycemic variability have been associated with increased risk of ADRD. Traditional glycemic measures, such as mean glycated hemoglobin A1c (HbA1c), may not identify the dynamic and complex pathophysiologic factors in the association between diabetes and ADRD. The HbA1c time in range (TIR) is a previously developed measure of glycemic control that expresses HbA1c stability over time within specific ranges. This measure may inform the current understanding of the association between glucose levels over time and ADRD incidence. To examine the association between HbA1c TIR and incidence of ADRD in older veterans with diabetes. The study sample for this cohort study was obtained from administrative and health care utilization data from the Veterans Health Administration and Medicare from January 1, 2004, to December 31, 2018. Veterans 65 years or older with diabetes were assessed. Participants were required to have at least 4 HbA1c tests during the 3-year baseline period, which could start between January 1, 2005, and December 31, 2014. Data analysis was conducted between July and December 2023. Hemoglobin A1c TIR was calculated as the percentage of days during baseline in which HbA1c was in individualized target ranges based on clinical characteristics and life expectancy, with higher HbA1c TIR viewed as more favorable. The association between HbA1c TIR and ADRD incidence was estimated. Additional models considered ADRD incidence in participants who were above or below HbA1c target ranges most of the time. The study included 374 021 veterans with diabetes (mean [SD] age, 73.2 [5.8] years; 369 059 [99%] male). During follow-up of up to 10 years, 41 424 (11%) developed ADRD. Adjusted Cox proportional hazards regression models showed that lower HbA1c TIR was associated with increased risk of incident ADRD (HbA1c TIR of 0 to <20% compared with ≥80%: hazard ratio, 1.19; 95% CI, 1.16-1.23). Furthermore, the direction of out-of-range HbA1c levels was associated with incident ADRD. Having greater time below range (≥60%, compared with ≥60% TIR) was associated with significantly increased risk (hazard ratio, 1.23; 95% CI, 1.19-1.27). Findings remained significant after excluding individuals with baseline use of medications associated with hypoglycemia risk (ie, insulin and sulfonylureas) or with hypoglycemia events. In this study of older adults with diabetes, increased HbA1c stability within patient-specific target ranges was associated with a lower risk of ADRD. Lower HbA1c TIR may identify patients at increased risk of ADRD.