How to update Calendar date if stack is left open overnight?
Posted: Sun Jan 11, 2009 7:11 am
Hello all,
I'm a newbie scripter and have made a calendar stack that will populate fields with the dates of the month and highlight the current date on preOpen stack.
If I rely on the pre-Open stack handlers to draw the calendar, and the user leaves the stack open overnight, they will find that the current date is "wrong" when they look at their calendar again the next morning, and if "overnight" happened on the last day of the month, the month will be "wrong" too.
What is the best way to periodically poll the system date to see if its "stillToday" so the date highlight can be changed or the calendar can be re-drawn if the user leaves the stack open overnight? I'm sure this is a no-brainer to a real programmer, but I have to plead that I'm a biologist and an artist, so I need somebody merciful to throw me a clue!
Thanks!
I'm a newbie scripter and have made a calendar stack that will populate fields with the dates of the month and highlight the current date on preOpen stack.
If I rely on the pre-Open stack handlers to draw the calendar, and the user leaves the stack open overnight, they will find that the current date is "wrong" when they look at their calendar again the next morning, and if "overnight" happened on the last day of the month, the month will be "wrong" too.
What is the best way to periodically poll the system date to see if its "stillToday" so the date highlight can be changed or the calendar can be re-drawn if the user leaves the stack open overnight? I'm sure this is a no-brainer to a real programmer, but I have to plead that I'm a biologist and an artist, so I need somebody merciful to throw me a clue!
Thanks!