how to subtract a date form another date to have number of days

29 views
Skip to first unread message

era air

unread,
Apr 3, 2017, 2:19:03 AM4/3/17
to MIT App Inventor Forum
1. i would like to know how to subtract date from another date to have dyas
2. how to calculate Expected date of Confinment using this formula ( +7 days, -3 months, +1 year) otherwise know as Naegele's Rule

thank you so much

Taifun

unread,
Apr 3, 2017, 10:25:11 AM4/3/17
to MIT App Inventor Forum
the methods to calculate with dates you can find in the clock component http://ai2.appinventor.mit.edu/reference/components/sensors.html#Clock

probably it would be easier to just add 40 weeks?

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Abraham Getzler

unread,
Apr 3, 2017, 7:01:07 PM4/3/17
to MIT App Inventor Forum
An interesting post!
Another example of how different applications need different ways to calculate date differences!
ABG

Reply all
Reply to author
Forward
0 new messages