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

You did not answer my question as to whether you require to know the actual time of an event or the relative time from some other event

millis() will not tell you the actual time unless you have an accurate start time in the first place

The Uno on its own cannot connect to the Internet so an RTC is the best option if you need the actual time, then you don't need to use millis() anyway