Friday, 6 September 2013

Get all months names between two given dates

Get all months names between two given dates

I am trying to make a function which gives all month name between two
dates in c#

List<string> liMonths = MyFunction(date1,date2);
my function is
MyFunction(DateTime date1,DateTime date2)
{
//some code
return listOfMonths;
}
can you help me how could i do this

No comments:

Post a Comment