HI All
Please help. I have a question. I need to get previous month. but I don't know.
like current month is Oct . code is ‘DateTime.Now.ToString(“MMM”)’ , but I want to get “Sep”. How to do ?
Thanks.
HI All
Please help. I have a question. I need to get previous month. but I don't know.
like current month is Oct . code is ‘DateTime.Now.ToString(“MMM”)’ , but I want to get “Sep”. How to do ?
Thanks.
yeah.get Sep. that is ok. thank a lot.
But I don’t know , why I get 9 using - DateTime.Now.AddMonths(-1).Month.ToString(“MMM”)
why get Sep using - DateTime.Now.AddMonths(-1).ToString(“MMM”)
I am sorry but I am not able to understand you…
for ‘Sep’ - DateTime.Now.AddMonths(-1).ToString(“MMM”)
for Number ‘09’ - DateTime.Now.AddMonths(-1).ToString(“MM”)
DateTime.Now.AddMonths(-1).Month.ToString , I can get 9 .
Ok, thanks. I got it.
I think the (“M…”) is digit.