By means of a q-binomial identity, we give two generalizations of Prodinger’s formula, which is equivalent to the famous Dilcher’s formula.