fcjoe Posted May 22, 2009 Posted May 22, 2009 Hello, I want to make a gui window where a user selects a date and time and then the window shows a countdown in days, hours, minutes, seconds of how much time is left between now and the time they selected (ex. 6 days, 4 hours, 12 minutes, 8 seconds). Basically a countdown. But I don't see any built in functions that can give me the difference in a way to easily do it. I could just get the total seconds back and figure it out with some creative math, but before I do I thought I'd ask if anyone knows of an easier way. Thanks, Joe
Authenticity Posted May 22, 2009 Posted May 22, 2009 Look up _DateDiff() in the help file. You can get the difference in seconds, minutes, etc... I think the thing you're interested in is to get the difference in seconds and build the difference in minutes, seconds, etc.. using a math equations.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now