identify the month

inline3

New Member
I am stuck at something.
Thing is I am developing an HR and Payroll management system.
In which I will be showing the \[code\]gridview\[/code\] with all the details like salary and all.
And before that I have given the functionality of marking leaves.

I have two \[code\]text boxes\[/code\] which are leaves from and leave to...both of these \[code\]textboxes\[/code\] have calendars.that is whenever i click on the textboxes im shown with a calendar in which i select the dates..and I m successfully entering them into database.

But I want to identify that for which month the leaves are taken.

Suppose I have taken leaves from 4 april to 15 april..
then I can easily identify that the total no of laves in april was 11 days.

But how will I identify it when the user take leaves from 28 April to 5th may.
what will I do in this case??
 
Top