using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp30
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//AddDays,AddHours,AddMilliseconds,AddMinutes,AddMonths,AddSeconds,AddYears
private void button1_Click(object sender, EventArgs e)
{
DateTime bugun = DateTime.Now;
DateTime yenitarih;
yenitarih = bugun.AddDays(10);
MessageBox.Show("Bugün="+bugun.ToString()+Environment.NewLine+"Bugünün 10 gün sonrası="+yenitarih.ToString());
}
}
}
Hiç yorum yok:
Yorum Gönder