Dear Friends,
I have one task, When product expiry date is reached alert should come before one month like"your product is expired after 30 days".
I am storing expiry date in the format "mm/yyyyy".
how to acheive this task without dd part?
Please suggest me.
Regards
Prasanna.

Manas MohapatraRank #182 · 13.2K reputationPosted Apr 30, 2016, 8:00 PM EDT
ali tuncerRank #1,499 · 1.1K reputationPosted Apr 30, 2016, 8:21 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Apr 30, 2016, 10:35 PM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted May 1, 2016, 7:17 AM EDT
List result = new List();
DateTime startDate = new DateTime(2012, 1, 8);
DateTime endDate = new DateTime(2013, 1, 3);
DateTime temp = startDate;
endDate = new DateTime (endDate.Year, endDate.Month, DateTime.DaysInMonth(endDate.Year,endDate.Month));
while (temp <= endDate)
{
Console.WriteLine((string.Format("{0}/{1}", temp.Month, temp.Year));
temp = temp.AddMonth(1);
}