Help Needed Building Clock

Do this

char buffer[12];
sprintf(buffer, "%02d-%02d-%4d", day, month, year);
LCD.print(buffer);

Tutorial of sprintf: