I am currently showing the current month but would like to show next month's date using the current date. Also i like to show the December month. Example: November - 2015 and also December - 2015. This is the current month:
<%=DateTime.Now.ToString("MMMM - yyyy") %>
Thanks
将当前日期加一个月。
<%=DateTime.Now.AddMonths(1).ToString("MMMM - yyyy") %>
<%=DateTime.Now.AddMonths(1).ToString("MMMM - yyyy") %>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.