请稍微高点的高手帮忙
using System;using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace testdatatime
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
enum weekday { 星期一, 星期二, 星期三, 星期四, 星期五, 星期六, 星期日 };
private void button1_Click(object sender, EventArgs e)
{
datatime dt = convertdatatime(textBox1 .Text );
weekday wd = (weekday)dt.dayofweek;
label2.Text = "这一天是"+wd;
}
}
}