C#编程:用DateTime获取当前是星期几
private void button1_Click(object sender, EventArgs e) { MessageBox.Show("今天是: "+DateTime.Now.ToString("dddd")); //今天是:星期一; }