Quickly and easily calculate the duration between two dates using a variety of methods and easily generate a countdown in your app.
Overview
Extension Developer | Luke Gackle |
Clone Starter .aia | Open in Thunkable LINK |
Get the .aix | Download |
Click-to-Copy Link | com.vishwas.ExtraComponents.aix N/A |
Donate to Developer | |
License | CC 4.0 BY ND N/A |
http://community.thunkable.com/uploads/default/original/2X/f/fd022c6df60ed822430d1b3b104eba47b5929e13.aix
Thunkable Community
If you have any questions about the Countdown extension then head on over to the Thunkable Community where you’ll find lots of amazing people who are happy to help you out.
Installation
If you need any help installing an extension then take a look at our “How to Install an Extension” guide.
Blocks
Procedures
Returns a list with the days, hours, minutes, and seconds between two dates. Arguments must be instants. This function ties in well if you have a Clock component in your project.
Returns YailList [days, hours, minutes, seconds]
Returns a list with the days, hours, minutes, and seconds between two dates. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm.
Returns the number of years between given start date and end date. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm. Return value is processed through Math.floor to retrieve the nearest whole number to return.
Returns long (duration)
Returns the number of months between given start date and end date. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm. Return value is processed through Math.floor to retrieve the nearest whole number to return.
Returns long (duration)
Returns the number of weeks between given start date and end date. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm.
Returns long (duration)
Returns the number of days between given start date and end date. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm
Returns long (duration)
Returns the number of hours between given start date and end date. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm.
Returns long (duration)
Returns the number of minutes between given start date and end date. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm.
Returns long (duration)
Returns the number of seconds between given start date and end date. Arguments must be formatted correctly like MM/DD/YYYY hh:mm:ss, or MM/DD/YYYY or hh:mm.
Returns long (duration)
Returns a String representing the current date and time in the format MM/DD/YYYY hh:mm:ss.
Returns String (Date/time)
Troubleshooting
Example App
This sample code creates an app the counts down to Google I/O 2020
The output of the above code will look like this:
Want to Help?
There are lots of great extensions being created and updateed everyday. Keeping this site up to date is a huge task. If you want to help out find out more in the Thunkable Community
Post written by:
Luke