Sir how to get current month and year from current date for comparing purpose?
And how to convert the string format?
Please help me....
How to get Current month and year only?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dipankar BiswasRank #992 · 2K reputationPosted Apr 20, 2015, 11:01 PM EDT
more hlp...see this link http://www.jquerywithexample.com/2013/10/get-current-month-and-year-in-jquery.html
Venkat KumarRank #3,138 · 456 reputationPosted Apr 20, 2015, 11:12 PM EDT
{
//Current Month and year from current date
DateTime a = DateTime.Now;
Response.Write(DateTime.Now);
Response.Write(a.Year);
Response.Write(a.Month);
//Convert Date to string
string b = DateTime.Now.ToString("dd-MMM-yyyy");
}
aravinth kandasamy57 reputationPosted Apr 21, 2015, 12:04 AM EDT