VB.NET Format Date for Datetimepicker
교교
2014.04.07 18:42:57
*: Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
TextBox1.Text = DateTimePicker1.Text
TextBox2.Text = DateTimePicker1.Value
TextBox3.Text = DateTimePicker1.Value.ToShortDateString
TextBox4.Text = DateTimePicker1.Value.ToShortTimeString
TextBox5.Text = Format(DateTimePicker1.Value, "yyyy/dd/MM")
TextBox6.Text = Format(DateTimePicker1.Value, "yyyy-MM-dd")
TextBox7.Text = Format(DateTimePicker1.Value, "yyyy,dd,MM")
TextBox8.Text = DateTimePicker1.Value.AddMinutes(5).ToShortTimeString
End Sub
End Class