Saturday, October 18, 2014

date and time in

Posted by Gnani Palepu  |  No comments

 if you want more related search please click here  
 please help to other  

 Displaying All Date and Time formats using  
 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)  
 Dim todaysdate As String = String.Format("{0:dd/MM/yyyy}", DateTime.Now)  
 system date:  
 DPOrderDate.SelectedDate = System.DateTime.UtcNow.ToString()  

 if you want more related search please click here  
 please help to other  

11:28 PM Share:


Get updates in your email box
Complete the form below, and we'll send you the best coupons.

Deliver via FeedBurner
Proudly Powered by Blogger.
back to top