You can use unixtime expression, it's the number of milliseconds since Jan 01 1970
int(unixtime/1000) is the number of seconds.
int(unixtime/60000) is the number of minutes and so on.
If when user opens the app unixtime>(yesterdaysUnixtime+86400000), this means that more than 24 hours has passed.