Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

need to displays all days based on year and month with Javascript

(0) ShareShare
ReportReport
Posted on by 32

I am having two  option sets one is for year and one is for month.

based upon the selection i need to populate days with the last date of that particular selected month.

i.e if I select 2020 as year and June as month. 

then I should display the label Day 1 as 1 monday to Day 30 as 30 Tuesday(I created the field Day 1 to Day 30)

kindly provide some links as i am new to use Date time fields in javascript

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: need to displays all days based on year and month with Javascript

    Hi,

    Try below link and see if it helps.

    stackoverflow.com/.../get-all-days-and-dates-from-month-and-year-using-moment-js

    If found helpful, Please mark my answer verified.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans