日付に関する操作
今日の日付、月初月末の日付
// 集計日
DateTime today = DateTime.Today;
// 月初め
DateTime monthStart = new DateTime(today.Year, today.Month, 1);
// 月終わり
DateTime monthEnd = new DateTime(today.Year, today.Month, 1).AddMonths(1).AddDays(-1);
// 日付挿入
挿入する箇所.Text = today.ToShortDateString();
↧