The RTC is just a 32-bit counter, which is incremented every second. The rest of the job of converting in real units (hours, months, years) have to be done in software.
There could be found some examples for date calculation in the Internet. For example