GDM is usually diagnosed through a glucose challenge test, typically performed between 24 and 28 weeks of pregnancy. If the initial screening test indicates high blood sugar levels, a more comprehensive glucose tolerance test is conducted to confirm the diagnosis.