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

Community site session details

Session Id : 7sfzBZ/R/6Xo9v4XMp8nHD
Power Apps - Building Power Apps
Answered

Every Monday in picklist

Like (0) ShareShare
ReportReport
Posted on 17 Oct 2022 15:57:56 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)
  • rbn_nue Profile Picture
    on 27 Jun 2023 at 04:01:32
    Re: Every Monday in picklist

    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

  • Verified answer
    v-yujincui-msft Profile Picture
    on 18 Oct 2022 at 03:29:04
    Re: Every Monday in picklist

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 885 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 571

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 352 Super User 2025 Season 2

Last 30 days Overall leaderboard