How to convert Time data from a function to integer.

nathanas:
But the problem is that I don't know how to make Serial.print(day()); to an integer.

int theDay = day ();

If that doesn't answer your question, can you explain why?