Save blank date

2 posts, 0 answers
  1. lakmal
    lakmal avatar
    76 posts
    Member since:
    Jun 2009

    Posted 26 Sep 2009 Link to this post


    I save blank date using date plicker. When i retrive date from using  '<% Bind("DateP")%>' it show  1900,01,01. I want stop that. If date blank i want show blank space. How can i do that?  Before save its show blank dates. But when i save some data with blank dates its show that date

  2. Martin
    Martin avatar
    810 posts

    Posted 28 Sep 2009 Link to this post

    Hello Lakmal,

    I tried to reproduce the behavior you reported but without success. Please try the following code and let us know if you still get the issue:

    <telerik:RadDatePicker runat="server" ID="RadDatePicker1" AutoPostBack="true"
        <br /> 
        <asp:Label runat="server" Text='<%# RadDatePicker1.SelectedDate %>' ID="Label1"></asp:Label> 

    And in the code behind:

    protected void Page_Load(object sender, EventArgs e) 

    I hope this helps

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top