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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Every Monday in picklist
Power Apps
Unanswered

Every Monday in picklist

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I used this code to get every Monday of the week in a picking list.  It was working very well.

ClearCollect(weeksList,
 ForAll(Sequence(52,-26,1) As DD,
 DateAdd(DateAdd(Today(),-Weekday(Today(),Monday)+1),7 * DD.Value ,Days)
 )
);

 

I don't know why, it now shows time with the date.  Can you help me to get ride of this time ?  Since this, my gallery isn't working.  Is there a way to get around this ?

jlarouche21_0-1666021495796.png

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @jlarouche21 ,

     

    Maybe you can try the following formula:

    ClearCollect(weeksList,
     ForAll(Sequence(52,-26,1) As DD,
     Text(DateAdd(DateAdd(Today(),-Weekday(Today(),Monday)+1),7 * DD.Value ,Days),DateTimeFormat.ShortDate)
     )
    );

    vyujincuimsft_0-1666063729112.png

     

     

    Best Regards,

    Charlie Choi

  • rbn_nue Profile Picture
    on at

    Hi @v-yujincui-msft 

     

    This helped me. But how can I modify it to get values of current financial year (eg: 2022 April 1 to 2023 March 31)

    Could you please help?

     

    Thanks,

    Robin

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard