In the handle function, store the date there. After reset, check the NoInit RAM and print some error log (which could be later an entry in NVM). Remove the data afterwards.