This dataset includes data from 43 hospitalized patients with type 2 diabetes mellitus. Dexcom G5 and Dexcom G6 mobile continuous glucose measurement (CGM) devices were used to measure continuous blood glucose levels. The data collection period is from April 2019 to January 2022. We selected 43 patients whose records with a more extended recording period of more than seven days. Data was collected for 7 to 10 days at 5-minute intervals. This data can be used for glucose level prediction or hypoglycemia occurrence prediction for patient with type 2 diabetes mellitus.