store date only

2 posts, 0 answers
  1. Elliott
    Elliott avatar
    392 posts
    Member since:
    May 2010

    Posted 07 Feb 2012 Link to this post

    I've been trying to replace a half a dozen textboxes ties to Tigris calendar controls with RadDateInput controls
    when I click on the calendar controls I get an error
    I've change the DateFormat to d
    is there a way to internally remove the time?
  2. Elliott
    Elliott avatar
    392 posts
    Member since:
    May 2010

    Posted 08 Feb 2012 Link to this post

    I solved one half of the problem - how to put the date from the RADDateInput into the Tigra Calendar
    function popup_cal6() {
        var del = $find("<%= del6.ClientID %>");
        var str = del.get_textBoxValue();
    var cal6 = new calendar2(document.form1.elements['del6']);
    cal6.year_scroll = true;
    cal6.time_comp = false;
    <asp:TableCell ID="TableCell6" runat="server"><span style="font-size: 8pt; color: #000099; font-family: Verdana">Ship Date</span>
    <a href="javascript:popup_cal6();"><img height="16" alt="Click Here to Pick up the date" src="img/cal.gif" width="16" /></a>
    <telerik:RadDateInput id="del6" DateFormat="d" Width="75px" Height="14px" Font-Size="X-Small" Font-Names="Verdana" BorderWidth="1px" runat="server"
        <ClientEvents OnError="date_input_error" />

    now the bigger problem seems to be getting the changed value back into RADDateInput
    this works for textboxes but not RADDateInput controls: = (
        ? obj_caller.gen_tsmp(dt_datetime)
        : obj_caller.gen_date(dt_datetime)
    where obj_caller is passed in as a parameter and target is a object (the textbox)
    the snippet above is in the calendar control which I would rather not make changes to
Back to Top