web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Customise Calendar sho...
Power Apps
Answered

Customise Calendar show old date

(0) ShareShare
ReportReport
Posted on by 29

Hello all, please help me with my APP..

I created a calendar in the gallery. I have a problem.. when I open the app it shows January 2020.. after clicking on the button with this data ..

 

Set(_FirstDayofWeek,
Date(
Year(Today()),
Month(Today()),
StartOfWeek.Monday))

 

I updated my calendar.. to the current month and year.. but the Start of the week.. starting from Thursday.. Friday.. Wednesday. .not on Mondays or Sundays.. same data I had in Property OnStart... but always start with year 2020... 

 

The best solutions will be.. open app and have current date... but I will be happy with that button.. update date and StartWeek on Monday/Sunday

 

Do you have some ideas how to do it? 🙂

app1.png
Categories:
I have the same question (0)
  • renatopc84_ch Profile Picture
    228 on at

    @Ivet__ instead of today() could you try utcnow()?

  • Ivet__ Profile Picture
    29 on at

    I try it but it didnt works.. I try it set up to ONSTART also in button.. but nothing change.. 

  • renatopc84 Profile Picture
    44 on at

    @Ivet__ Can you please attach a screenshot of the properties of the calendar?

  • Ivet__ Profile Picture
    29 on at

    of course,

    Ivet___0-1708420926913.pngIvet___1-1708420945186.png

    Ivet___2-1708421028717.png

     

  • renatopc84_ch Profile Picture
    228 on at

    Sorry I cannot understand how is built the calendar in the gallery. I see in the screenshot an array with 7 items (from 0 to 6).

    Is it also important to see what is in the default selected items of the gallery. Can you please show a screenshot of the gallery also all the parameters?

  • Ivet__ Profile Picture
    29 on at

    sorry I try better explain.. I have 3 galleries.. 

    first gallery = day :

    item= [0,1,2,3,4,5,6]

    wrap=7

    Title in that gallery show DAY = 

    Text(
    DateAdd(
    _FirstDayofWeek,
    ThisItem.Value,
    TimeUnit.Days
    )+1,
    "ddd"
    )

    second gallery = calendar_week:

    items = [0,1,2,3,4,5,6]

    wrap = 7

    Title in that gallery show DATE = 

    Text(
    DateAdd(
    _FirstDayofWeek,
    ThisItem.Value,
    TimeUnit.Days
    ) +1,
    DateTimeFormat.ShortDate
    )

    third gallery = oneday :

    wrap = 1

    item = 

    Filter('sharepointlist',
    StartsWith(AREA, Label3_91.Text), (POSITION = Label3_90.Text),
    (LINE = Label3_93.Text),
    (WORKGROUP = WORKGROUP5__10.Selected.Value || WORKGROUP5__10.Selected.Value = Blank()),
    (SHIFT = shiftradio_6.Selected.Value || shiftradio_6.Selected.Value = Blank()),
    DateValue(Text(DATE))=DateAdd(_FirstDayofWeek, ThisItem.Value, TimeUnit.Days) +1)

     

    this is everything.. 

    Ivet___0-1708581559567.png

    Ivet___1-1708581617267.png

     

     

  • Verified answer
    renatopc84_ch Profile Picture
    228 on at

    Hi @Ivet__ 

    wow! Now I understand what you mean.

    If the main problem is to obtain the correct date, could it be a possible solution for you to add a datepicker (hidden or visible) where you can set all these properties (I use it for a lot of apps) and then use the value of the datepicker in the filters of the galleries? 

  • Ivet__ Profile Picture
    29 on at

    Hi, its really great idea.. I try it for my calendar.. you have right when I open app shows current date.. but it didnt work on whole calendar.. so I accept it as solution ..Thank you 🙂

  • Ivet__ Profile Picture
    29 on at

    Hi, 

     

    I just want to let you know.. I figured out.. OnStart in APP I changes my set up..

     

    Set(_CurrentUser, User());Set(_CurrentDate, Today());
    Set(_firstDayImView, DateAdd(_FirstDayofWeek, -(Weekday(Today(),StartOfWeek.Monday))))..

     

    now my calendar starts with actual date and week.. also.. with Monday..

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard