How to calculate first and last month date uisng Javascript in model driven powerapp?
How to calculate first and last month date uisng Javascript in model driven powerapp?
It's working . Thank you!
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);
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156