how we can find the last date of any given month and year
how we can find the last date of any given month and year means if given month 3 or macrh and given year 2015 then how we can find the last date of that month
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.
Michal HabalcikPosted Jan 14, 2015, 6:07 AM
var date = new DateTime(2015, 3, 1).AddMonths(1).AddDays(-1);
the first DateTime parameter is the year, the second is month.
Riddhi ValechaPosted Jan 14, 2015, 6:08 AM