Holen Sie sich last/nächste Woche Mittwoch Datum in C#

Wie ich Letzte Woche Mittwoch und nächste Woche Mittwoch Datum in C#:

public Form1()
{
   InitializeComponent();
   CurrentDate.Text = "Today's Date: " + DateTime.Now.ToString("dd/MM/yyyy");
   CurrentRent.Text = "Current Rent Date: "; //last wednesday
   NextRent.Text = "Next Rent Date: "; //next wednesday
}

InformationsquelleAutor der Frage methuselah | 2013-12-05

Schreibe einen Kommentar