CalendarScreen: displaying current date - peophins-plasmas/pawsome-app GitHub Wiki

The CalendarScreen component displays the current date at the top of the screen above CalendarStrip, so that the user can return to the current date if they have been checking around and need a reminder of what the current day actually is (based on developers' own experiences of trying to remember the current date during busy schedules).

This is achieved by creating a new Date object, and using the function .toDateString, which renders the date in Day of Week-Month-Date-Year format. This string is placed in a Text in a View element above the CalendarStrip, and is also used as a default for the starting date selected in the CalendarStrip. This way, the current day's chores are the first things a user sees when accessing the Calendar page.