How To Get FirstDate And LastDate Of Selected Month Id From Dropdown In AngularJS [Resolved]

Posted by Kasani007 under AngularJS on 9/6/2016 | Points: 10 | Views : 283 | Status : [Member] | Replies : 1
How To Get FirstDate And LastDate Of Selected Month Id From Dropdown In AngularJS




Responses

Posted by: Rajnilari2015 on: 9/7/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
in your controller
--------------------
var date = new Date();
$scope.firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
$scope.lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);


in your view
-----------------
<p>First Day : {{firstDay}}</p>
<p>Last Day : {{lastDay}}</p>


--
Thanks & Regards,
RNA Team

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response