Help Needed Building Clock

Here is function that I use to print a time:

void lcdPrintTime(uint8_t hr, uint8_t min, uint8_t sec)
{
	if(hr < 10)
		lcd.write('0');
	lcd.print((int)hr);
	lcd.write(':');
	if(min < 10)
		lcd.write('0');
	lcd.print((int)min);
	lcd.write(':');
	if(sec < 10)
		lcd.write('0');
	lcd.print((int)sec);
}

I'll set the cursor position, then call this function.
It doesn't do the date but you get the idea.
I'd do a different function for the date.
That way you can simply set the position for the date, print the date
then set the position for the time and print the time.
You can move locations or swap lines easily that way.

--- bill