Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我们的一个应用程序中有一个日期时间选择器。加载获胜表格时,我需要将日期时间选择器默认为今天日期之后的星期三。知道怎么做吗?我们为此应用程序使用 .Net 1.1。
谢谢,迈克
这应该可以...只需添加几天,直到您到达下一个星期三
Public Function GetNextDayOfWeek(ByVal dow As DayOfWeek) As DateTime Dim d = DateTime.Now.AddDays(1) While d.DayOfWeek <> dow d = d.AddDays(1) End While Return d End Function