easter and calendar

37 views
Skip to first unread message

Unit Ekg

unread,
Mar 16, 2019, 6:09:40 AM3/16/19
to MIT App Inventor Forum
Hi.
I am a very beginer in AI 2. So, my English is not soo good too. I read a lot of tutorials for my problem.
So, I have 5 labels on Screen 1
1 - Easter date -                               already done, in format April 21 (this year)
2 - Palm Sunday -                            April 21 - 7 days (format April 14)
3 - Good Friday -                              April 21 - 2 days (format  April 19)
4 - Communion Thursday                  April 21 + 40 days (format May 30)
5 - Pentecost                                   April 21 + 50 days (format June 9)

How can I deduct or add days and display in a right place (label)?
I have already Easter formula made. It works fine.
Can somebody to help me?
This project will work for a church. Maybe, if somebody can send me an app in .aia extension, I can copy in my app... It would be great. I can make the changes in it...

Thak you all in advance.

TimAI2

unread,
Mar 16, 2019, 7:22:24 AM3/16/19
to MIT App Inventor Forum
Here is one way, I prefer to use milliseconds to do date calculations, so you need a clock component for those blocks
I used a date picker to set the Easter Sunday date.

There are many other ways to achieve the same thing

SCREEN

screeneaster.png

BLOCKS


blockseaster.png



easter.aia
Reply all
Reply to author
Forward
0 new messages