Problem with data types?

Hi there

Thanks for the help! Getting closer but still got a problem.

If I use the code you suggested it prints 10:10:10 on the screen. I have just been playing around with it just now and found that the code below works great.

    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();

But the code below (which is what I am using does not) - It just gives 10:10:10.

  hournow = (now.hour(), DEC);
  minutenow = (now.minute(), DEC);
  secondnow = (now.second(), DEC);

  Serial.print(hournow);
  Serial.print(":");
  Serial.print(minutenow);
  Serial.print(":");
  Serial.println(secondnow);