Sign in to follow this  
Followers 0
fcjoe

Coutdown

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0