Hi,
I made a customized version of DateTimePikcker in a way that it displays month and day only (MM-dd), as I needed to display the month and day parts as a separate field from the year component.
So far it's worked all fine - for input dates with yy-MM-dd or MM-dd formats.
The problem is that it's impossible to display the date '02-29' without specifying the year.
That is, unless I type in the date using the yy-MM-dd (where yy is the leap year), DateTimePicker does not support Feb 29 so I have to type something like 2014-02-29.
Is there any way to type and display 02-29 without the user actually having to specify the year?
Thank you in advance for your kind reply.
<UserControl.Resources>
</Style>
<Style x:Key="CalendarStyle" TargetType="telerik:RadCalendar">
<Setter Property="MonthViewHeaderFormat" Value="MMMM" />
</Style>
<telerik:RadDateTimePicker Grid.Column="1" Grid.Row="8"
x:Name="birthDate"
InputMode="DatePicker"
CalendarStyle="{StaticResource CalendarStyle}"
TextAlignment="Right"
Height="16"
Margin="2,0"
DateTimeWatermarkContent="Enter a Date"
SelectedDate="{Binding CurrentIndividual.BirthDateTime, Mode=TwoWay}"/>
I made a customized version of DateTimePikcker in a way that it displays month and day only (MM-dd), as I needed to display the month and day parts as a separate field from the year component.
So far it's worked all fine - for input dates with yy-MM-dd or MM-dd formats.
The problem is that it's impossible to display the date '02-29' without specifying the year.
That is, unless I type in the date using the yy-MM-dd (where yy is the leap year), DateTimePicker does not support Feb 29 so I have to type something like 2014-02-29.
Is there any way to type and display 02-29 without the user actually having to specify the year?
Thank you in advance for your kind reply.
<UserControl.Resources>
</Style>
<Style x:Key="CalendarStyle" TargetType="telerik:RadCalendar">
<Setter Property="MonthViewHeaderFormat" Value="MMMM" />
</Style>
<telerik:RadDateTimePicker Grid.Column="1" Grid.Row="8"
x:Name="birthDate"
InputMode="DatePicker"
CalendarStyle="{StaticResource CalendarStyle}"
TextAlignment="Right"
Height="16"
Margin="2,0"
DateTimeWatermarkContent="Enter a Date"
SelectedDate="{Binding CurrentIndividual.BirthDateTime, Mode=TwoWay}"/>