根据vb.net中的月份名称获取月份的开始和结束日期
问题描述:
根据vb.net中的月份名称获取月份的开始日期和结束日期.
get the start and end date of a month based on the month name in vb.net
答
开始日期始终是第一个,因此很容易.有多种获取结束日期的方法.一个示例是获取下个月的第一个日期,然后减去一天.
Start date is always the first, so that one is easy. There are many ways to get the end date. One example is to get the first date of the next month and then subtract a day.
startDateVariable.AddMonths(1).AddDays(-1)
此处是您的解决方案..
http://www.codekeep.net/snippets/59739c34-4feb-4173-b2d3- fc03913f6cdd.aspx [ ^ ]
http://www.c-sharpcorner.com/UploadFile/scottlysle/FirstAndLastDay10262007135750PM/FirstAndLastDay.aspx [ ^ ]
Here are your solutions..
http://www.codekeep.net/snippets/59739c34-4feb-4173-b2d3-fc03913f6cdd.aspx[^]
http://www.c-sharpcorner.com/UploadFile/scottlysle/FirstAndLastDay10262007135750PM/FirstAndLastDay.aspx[^]