Skip to first unread message

rjc

unread,
Dec 26, 2015, 7:23:40 PM12/26/15
to MIT App Inventor Forum
I am looking for a solution to add a certain number of weeks or days to a DatePicker result. I'm looking for something like "startDate + 14 days" for example, where the 14 days will be pulled from an input field and the startDate from the picker. I do have the basic date info displayed properly.

Any help would be appreciated....

Taifun

unread,
Dec 27, 2015, 9:57:53 AM12/27/15
to MIT App Inventor Forum
see the methods of the clock component
Taifun

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

Abraham Getzler

unread,
Dec 27, 2015, 3:20:55 PM12/27/15
to MIT App Inventor Forum
Hint ...

You will have to convert your date to either an Instant or a MillisecondsFrom1970
then add your interval, then convert it back to something readable.

ABG

rjc

unread,
Dec 27, 2015, 5:12:52 PM12/27/15
to MIT App Inventor Forum
I'll give that a try - sounds like a method to stay with the DatePicker rather than to go back to the Clock methods.
Reply all
Reply to author
Forward
0 new messages