This project was inspired by a support request on my Facebook App Inventor Projects page.
It calculates the fractional number of days between two dates using two DatePickers and a Clock component.
returns a fractional day from two date inputs formatted as MM/DD/YYYY
Explanation:
Use the number of milliseconds between dates to calculate the number of days between the dates by using dimensional analysis to convert ms to days (ignores leap seconds):
ms x 1 sec x 1 hr 1 day
----- ---- x -----
1000 ms 3600 sec 24 hr
So: ms/86400000 = fractional days
aia project is attached.
See also this simple example of calculating days between dates for AI Classic > here <
It could be easily rewritten for the current AI version. Will you be the one to do it?
---
sf