How to store date in time in DateTime object?

I need to store dates and times in a few DateTime objects that will be used to run jobs when the time comes.

I use an Arduino Nano with a DS3231 RTC.

For the life of me, I cannot find decent online instructions for doing that sort of thing... Any information will be greatly appreciated!

It's usually easier to just keep up with unix time in uint32_t variables than it is to try to use DateTime for something like that. DateTime is great for taking unix time and giving you something human readable. But for triggering events at certain times it's just easier to use a time_t and keep it in unix time.

Use the makeTime function to convert from human input to time_t if you need to.