How to add time/date/trigger to a specific code?

I'm using the Arduino Uno which I believe it cannot connect to the internet? How would I add millis()? Would I just add mytime=millis() under Serial.println("Liquid Detected!")?

 if (digitalRead(Liquid_Detection_Pin)) {
    Serial.println("Liquid Detected!");
mytime=millis();