Clock project

Its me again, and ive completed my timer. It counts seconds, minutes, hours and days. Not sure for what I would use this, but anyway, Im thinking that this is to easy. Here is the code

#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8 );

void setup()
lcd.begin(16, 2);
void loop()
lcd.print(millis() / 864000);
lcd.setCursor(0, 1);
lcd.setCursor(4, 0);
lcd.print((millis() / 36000) % 24);
lcd.setCursor(4, 1);
lcd.setCursor(8, 0);
lcd.print((millis() / 600) % 60);
lcd.setCursor(8, 1);
lcd.setCursor(12, 0);
lcd.print((millis() / 10) % 60);
lcd.setCursor(12, 1);


I have four different numbers counting at the same time, and they are displaying on an LCD. But what if I have only one number ticking(seconds), and the minutes, hours and days get count based on the amount of seconds passed. Bassicly, every 60 seconds will form a minute, 60 minutes -an hour. How can I make that in code? Please answer with examples, it makes my life easier.
BTW, Programs must be less than 32 kilobytes, my Uno can handle just that.
Until further Notice.

If, for example, you want to display seconds, your require something like this:

lcd.print((millis() / 1000UL) % 60);

and not:

lcd.print((millis() / 10) % 60);

Add a Serial.print, say

Serial.print((millis() / 1000UL) % 60);

after each corresponding lcd.print to see what it is actually calculating. It looks like your counters may be partially over writing each other on the LCD display.

Oh shacks, ive posted the wrong code. I have all of the numbers correct, my bad