分类: 系统运维
2009-07-25 14:40:49
private void Form1_Load(object sender, System.EventArgs e)
{
//textBox1.Text=DateTime.Now.ToString("dd/MM/yyyy");
//textBox1.Text=DateTime.Now.DayOfYear.ToString();
textBox1.Text=DateTime.Now.ToString("d");
textBox2.Text=DateTime.Now.ToString("D");
textBox3.Text=DateTime.Now.ToString("G");
textBox6.Text=DateTime.Now.ToString("g");
textBox5.Text=DateTime.Now.ToString("T");
textBox4.Text=DateTime.Now.ToString("t");
textBox12.Text=DateTime.Now.ToString("F");
textBox11.Text=DateTime.Now.ToString("f");
textBox10.Text=DateTime.Now.ToString("M");
textBox9.Text=DateTime.Now.ToString("R");
textBox8.Text=DateTime.Now.ToString("s");
textBox7.Text=DateTime.Now.ToString("u");
textBox13.Text=DateTime.Now.ToString("Y");
textBox14.Text=DateTime.Now.ToString("y");
}
private void Form2_Load(object sender, System.EventArgs e)
{
textBox1.Text=DateTime.Now.ToString("M/d/yyyy");
textBox2.Text=DateTime.Now.ToString("MM/dd/yy");
textBox3.Text=DateTime.Now.ToString("d-MMMM-yy");
textBox6.Text=DateTime.Now.ToString("ddMMyyyy");
textBox5.Text=DateTime.Now.ToString("dd日MM月yyyy年");
textBox4.Text=DateTime.Now.ToString("yyyy年MM月dd日");
textBox12.Text=DateTime.Now.ToString("yyyy年");
textBox11.Text=DateTime.Now.ToString("MM月");
textBox10.Text=DateTime.Now.ToString("dd日");
textBox9.Text=DateTime.Now.ToString("hh:mm:ss");
textBox8.Text=DateTime.Now.ToString("M/d/yyyy H:mm");
textBox7.Text=DateTime.Now.ToString("H:mm:ss");
}