In my code, I have the following line:
var today = new Date();
My research tells me this should set today as the current date. But where does this current date come from?
In one instance, I set an object up with this current date. Then my app wants this object to timeout after 30 days, so I changed the date on the tablet and re-entered the app (it closed and reopened), and yet today still gets the same value from Date(). Where does Date() get its value from?
If I wanted to get a tablet specific time, how would I do that?