private void timer1_Tick(object sender, EventArgs e) { timer1.Enabled = true; timer1.Interval = 1000; toolStripTextBox1.Text = DateTime.Now.ToString("dd-MM-yyyy"); toolStripTextBox2.Text = DateTime.Now.ToString("h:mm:ss tt"); }
private void Form1_Load(object sender, EventArgs e) { dateTimePicker1.Format = DateTimePickerFormat.Time; dateTimePicker1.ShowUpDown = true; dateTimePicker1.CustomFormat = "h:mm:ss tt"; dateTimePicker1.Value = DateTime.Now; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)