Hello
I am new in the community of Telerik
I want to get the string to select the date
example of test:
in frm.aspx
<telerik:RadDatePicker ID="RadDatePicker1" runat="server"></telerik:RadDatePicker>
in frm.aspx.vb
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'here code!!
Dim x As String
x = RadDatePicker1.xxxxxx
MsgBox(x)
End Sub Dim x As String
how Get String of DatePicker??
sorry my english
4 Answers, 1 is accepted
0
Hello Nagiza,
SelectedDate property returns an object of type DateTime? (nullable DateTime).
More detailed:
Let me know if you need more information.
Regards,
Daniel
Telerik
SelectedDate property returns an object of type DateTime? (nullable DateTime).
Protected Sub Button1_Click(sender As Object, e As EventArgs) Dim dateAsString As String = RadDatePicker1.SelectedDate.ToString() ....End SubMore detailed:
Protected Sub Button1_Click(sender As Object, e As EventArgs) Dim nullableDate As System.Nullable(Of DateTime) = RadDatePicker1.SelectedDate Dim [date] As DateTime = nullableDate.Value Dim dateAsString As String = [date].ToString()End SubLet me know if you need more information.
Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
0
Hello Nagiza,
I would recommend that you examine the following link:
Standard Date and Time Format Strings
DateTime type is native to .NET Framework and the best way to find information about it is to look inside MSDN.
Regards,
Daniel
Telerik
I would recommend that you examine the following link:
Standard Date and Time Format Strings
DateTime type is native to .NET Framework and the best way to find information about it is to look inside MSDN.
Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
0
Nagiza
Top achievements
Rank 1
answered on 25 Sep 2015, 07:33 AM
ok
thanks