if you want more related search please click here
please help to other
http://scriptquery.blogspot.in/
Displaying All Date and Time formats using vb.net
...................................................
textbox1.text=datetimepicker1.text-------> it display a normal time and dat
textbox1.text=datetimepicker1.value------> 08.03.2014 20:56:51
textbox1.text=datetimepicker1.value.toshortdatestring----> 08.03.2014
textbox1.text= datetimepicker1.value.toshorttimestring---->20:57
textbox1.text=format(datetimepicker1.value," yyyy/mm/dd ")
textbox1.text=format(datetimepicker1.value," yyyy-mm-dd ")
MessageBox.Show("The selected value is ", DateTimePicker1.Text)
MessageBox.Show("The day of the week is ", DateTimePicker1.Value.DayOfWeek.ToString)
MessageBox.Show("Millisecond is: ", DateTimePicker1.Value.Millisecond.ToString)
it shows the name of the week
----------------------------------
dim sday as string
sday = WeekdayName(Weekday(DateTimePicker1.Value, 0), 0, 0)
Display the date as "Mon 26 Feb 2001".
--------------------------------------
DateTimePicker1.Format = DateTimePickerFormat.Custom
DateTimePicker1.CustomFormat = "ddd dd MMM yyyy"
how to set the date and time value of the control
--------------------------------------------------
DateTimePicker1.Value = New DateTime(2001, 10, 20)
NOW TIME and DATE
------------------
Dim todaysdate As String = String.Format("{0:dd/MM/yyyy}", DateTime.Now)
system date:
------------
DPOrderDate.SelectedDate = System.DateTime.UtcNow.ToString()
(controlname->DPOrderDate)
if you want more related search please click here
please help to other
http://scriptquery.blogspot.in/
11:28 PM
Share:
0 comments: