DateTime kullanımı C#

DateTime kullanımı C# 

[code lang=”csharp”]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
DateTime myvalue = DateTime.Now;
label1.Visible = true;
label1.Text = myvalue.ToString();
}

private void Form1_Load(object sender, EventArgs e)
{
label1.Visible = false;
}
}
}
[/code]

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir