DateTime Class'ı

 avatar
unknown
csharp
a year ago
876 B
14
Indexable
string tarih = "";
tarih = DateTime.Now.ToString();
listBox1.Items.Add(tarih);
tarih = DateTime.Today.ToString();
listBox1.Items.Add(tarih);
tarih = DateTime.Today.Year.ToString();
listBox1.Items.Add(tarih);
tarih = DateTime.Today.Month.ToString();
listBox1.Items.Add(tarih);
tarih = DateTime.Today.Date.ToString();
listBox1.Items.Add(tarih);
tarih = DateTime.Today.Hour.ToString();
listBox1.Items.Add(tarih);
tarih = DateTime.Now.Hour.ToString();
listBox1.Items.Add(tarih);
tarih = DateTime.Today.AddDays(5).ToString();
listBox1.Items.Add(tarih);
DateTime dt = new DateTime();
DateTime dt1 = new DateTime(2003, 6, 10);
textBox1.Text = dateTimePicker1.Value.AddDays(10).ToString();
textBox1.Text = dateTimePicker1.Value.ToString();
textBox1.Text = dateTimePicker1.Value.DayOfWeek.ToString();
TimeSpan fark = dateTimePicker2.Value - dateTimePicker4.Value;
Editor is loading...
Leave a Comment