Como puedo sumar dias o semanas a una fecha

173 views
Skip to first unread message

Inma Valdivia

unread,
Mar 15, 2015, 7:46:12 PM3/15/15
to ai...@googlegroups.com
por ejemplo :  estamos en el Dia: 3      mes: 5      año 2015  y quiero saber que fecha es si le sumo 80 dias o 12 semanas

gracias....


(03/05/2015) + 80 dias = ( ? / ? / ???? )
(03/05/2015) + 12 semanas = ( ??/??/????)

gracias

Taifun

unread,
Mar 16, 2015, 3:58:14 PM3/16/15
to ai...@googlegroups.com
see the clock component http://ai2.appinventor.mit.edu/reference/components/sensors.html#Clock
and use the AddDays or AddWeeks methods
Taifun

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


InstantInTime AddDays(InstantInTime instant, number days)
An instant in time some days after the argument
InstantInTime AddWeeks(InstantInTime instant, number weeks)
An instant in time some weeks after the argument

Reply all
Reply to author
Forward
0 new messages