根据vb.net中的月份名称获取月份的开始和结束日期 [英] get the start and end date of a month based on the month name in vb.net

查看:510
本文介绍了根据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[^]


这篇关于根据vb.net中的月份名称获取月份的开始和结束日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆