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.
アプリの 1 つに日時ピッカーがあります。勝利フォームをロードするとき、今日の日付に続く水曜日にデフォルト設定する日時ピッカーが必要です。これを行う方法はありますか?このアプリには .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