Hi ,
i have used a datepicker inside my code .
I want the format as dd/MM/yyyy but i am getting it always as MM/dd/yyyy.
Here is the snippet for the datepicker code.
Can anyone help please.
<DatePicker Name="dateTimePicker1" Grid.Row="2" Grid.Column="3" Margin="0,0,57,0" ToolTip="{Binding Mode=TwoWay,Path=.}"
SelectedDate="{x:Static s:DateTime.Now}" SelectedDateChanged="dateTimePicker1_SelectedDateChanged"
materialDesign:HintAssist.Hint="Pick Date"
Foreground="Black" VerticalAlignment="Bottom" >
<DatePicker.Resources>
<Style TargetType="DatePickerTextBox" >
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<TextBox x:Name="DP_TextBox" Text="{Binding Path=SelectedDate,StringFormat={}{0:dd/MM/yyyy},RelativeSource={RelativeSource AncestorType={x:Type DatePicker}}}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</DatePicker.Resources>
</DatePicker>
Thanks
