Use the TinyDB.StoreValue method to store the datetime converted in millis
https://community.appinventor.mit.edu/t/guide-how-to-use-the-clock/21742/58
Taifun