I'm trying to work with dates in sqlite and I need a way of comparing them. My issue is that when I try to save a setup date into the database it gives me new values; They however don't differ much - just in milliseconds.
Here's the code:
Date today = new Date();
today.setHours(0);
today.setMinutes(0);
today.setSeconds(0);
How do I make it to give me constant values ?
P.S. I could've divided it by 1000 and save but I use greenDao framework, which encapsulates the insertion logic.
Thanks.