VB.NET Format Date for Datetimepicker
*
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
DateTimePicker_ADD.PNG

이 게시물을

공유하기

SEARCH

MENU NAVIGATION