jan value= 0.5
feb=1
mah=1.5
now this month is march means
sick =1.5
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ShetPosted Feb 2, 2015, 7:43 AM
VulpesPosted Jan 30, 2015, 4:37 PM
So Pradeep is getting the current month as an integer (from 1 to 12) and multiplying it by 0.5.
So March will give a sick value of: 3 * 0.5 = 1.5.
ancy chackoPosted Jan 30, 2015, 3:56 AM
Pradeep ShetPosted Jan 30, 2015, 3:09 AM
Get the current month
int iCurrentMonth = DateTime.Now.Month;
decimal updatesickLeave = 0.5 * iCurrentMonth;
Mark it as answered if it helped you.