This is a migrated thread and some comments may be shown as answers.

RadDateInput

1 Answer 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 06 Jan 2011, 05:53 PM
Hi all:

I have a RadDateInput set up thus:

 <telerik:RadDateInput ID="dt1" runat="server" Culture="en-US"
      DisplayDateFormat="dd MMM yyyy" Font-Names="Verdana"
      Font-Size="12px" Height="22px" LabelCssClass=""
      Style="z-index: 116; left: 16px; position: absolute; top: 50px" TabIndex="189"
      Width="85px">
    </telerik:RadDateInput>

and when I enter a date, like 2011 1 1, it displays correctly as 01 Jan 2011, however if I then grab the value from the Input, I get: 2011-01-01-00-00-00.

Can anyone tell me how I can drop the extra values (which I assume are for time) and be left with 2011-01-01?

John.




1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Jan 2011, 01:09 PM
Hello John,


I believe setting default time for DAteInput is possible by making use of client side api. You can set the default time in the OnDateSelected event
of DateInput. Make sure that you use a flag to identify it happen only frfirst time, to prevent infinite loop.
Client-Side Basics
RadDateInput Client Object


Thanks,
Princy.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or