*Hi*
*i need to get count of all weekdays (Saturday, Sunday .....) that i have
checked from from that let me select day's will employee work on it - in
the month i select like:*
*month: 06-2015*
*Saturday: 4 day's*
*Sunday : 4 day's*
*ect .......*
*i have did it by c# as code:*
* /// <summary> /// Get Count Of Work Day's In The Month
/// </summary> void Get_Count_Month_Days(int month, DayOfWeek
dayName) { int daysOfMonth = DateTime.DaysInMonth(year,
month); for (int i = 1; i <= daysOfMonth; i++) {
if (new DateTime(year, month, i).DayOfWeek == dayName)
{ listOfDays.Add(new DateTime(year, month, i));
} } mustWorkDays = listOfDays.Count;
}and loop throw day's as:*
* if (Saturday_chk.Checked == true) {
Get_Count_Month_Days(Convert.ToInt32(Month_Name_Combo.Value),
DayOfWeek.Saturday); } if (Sunday_chk.Checked ==
true) {
Get_Count_Month_Days(Convert.ToInt32(Month_Name_Combo.Value),
DayOfWeek.Sunday); } if (Monday_chk.Checked == true)
{
Get_Count_Month_Days(Convert.ToInt32(Month_Name_Combo.Value),
DayOfWeek.Monday); } if (Tuesday_chk.Checked ==
true) {
Get_Count_Month_Days(Convert.ToInt32(Month_Name_Combo.Value),
DayOfWeek.Tuesday); } if (Wednesday_chk.Checked ==
true) {
Get_Count_Month_Days(Convert.ToInt32(Month_Name_Combo.Value),
DayOfWeek.Wednesday); } if (Thursday_chk.Checked ==
true) {
Get_Count_Month_Days(Convert.ToInt32(Month_Name_Combo.Value),
DayOfWeek.Thursday); }now i need to it with angularjs but i
don't know how to it - so please hope anyone here can help me with sample
code for doing that ?*
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.