We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

what is datetimepicker value on a form post?

Thread ID:





128046 Dec 28,2016 04:25 PM UTC Jan 2,2017 12:49 PM UTC ASP.NET Web Forms 1
Tags: DateTimePicker
Thomas Moore
Asked On December 28, 2016 04:25 PM UTC

For the control:

<ej:DateTimePicker ID="txtArrive" TimePopupWidth="150" TimeDisplayFormat="h:mm tt" Width="280px" DateTimeFormat="MM/dd/yyyy h:mm tt" Interval="5" runat="server"></ej:DateTimePicker>

How do I get the value in the code behind.

txtArrive.value does not work.

Prem Kumar Madhan Raj [Syncfusion]
Replied On January 2, 2017 12:49 PM UTC

Hi Thomas Moore, 

Thanks for using Syncfusion products, 
We have analyzed your sample. To get the value from control, using ID, we can use the code as like in below code example. Here the Value property need to be represent with proper casing(Value) since it’s a case sensitive one. 

So, to get the value of control in code behind, please use txtArrive.Value as like in below code example. 
<ej:DateTimePicker ID="txtArrive" TimePopupWidth="150" TimeDisplayFormat="h:mm tt" Width="280px"DateTimeFormat="MM/dd/yyyy h:mm tt" Interval="5" runat="server"></ej:DateTimePicker> 
  protected void Page_Load(object sender, EventArgs e) 
        DateTime? str = txtArrive.Value; 
Please let us know if you have further queries, 

Prem Kumar Madhan Raj. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon