This is a migrated thread and some comments may be shown as answers.
MM/yyyy formatting
1 Answer 41 Views
This is a migrated thread and some comments may be shown as answers.
sacparker
Top achievements
Rank 1
sacparker asked on 02 Jan 2008, 09:21 PM
Hello,

i am having a issue with RadDateInput using Prometheus 3.1218.2070. i want the user to be able to select the two digit month and 4 digit year. if a user types "02/2008" the input box will change this to "01/2008". it works as expected when you enter "2/2008" will change to "02/2008".


            <telerik:RadDateInput ID="RadDateInput1" runat="server" 
                EnableEmbeddedSkins="false" 
                Skin="Default" 
                DateFormat="MM/yyyy" 
                DisplayDateFormat="MM/yyyy" 
                EmptyMessage="MM/YYYY" > 
            </telerik:RadDateInput> 

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 03 Jan 2008, 03:03 PM
Hi sacparker,

Unfortunately due to the control parsing logic such format (numeric month/year only) is not supported. If you would like to enter only month/year combination you would need to use a format like MMM/yyyy (i.e. where the month part is entered with letters and not numbers) e.g. Jan/2008.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
sacparker
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or