Announcements
No record found.
How to calculate first and last month date uisng Javascript in model driven powerapp?
var my_date = new Date(); // maybe you need a certain month, then use this: var my_date = new Date("2018, Jan");
var first_date = new Date(my_date.getFullYear(), my_date.getMonth(), 1);
console.log(first_date);
var last_date = new Date(my_date.getFullYear(), my_date.getMonth() + 1, 0);
console.log(last_date);
It's working . Thank you!
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 166 Super User 2026 Season 1
Jimmy Passeti 51 Most Valuable Professional
NeerajPawar 51