How do I change SelectedDateFormat
to display 21 Nov 2019?
<DatePicker CalendarStyle="{StaticResource resizedCalendarItem}"
SelectedDateFormat="Short"
x:Name="gDPickVisitDate"
SelectedDateChanged="gDPickVisitDate_SelectedDateChanged" />
displays 11/21/2019.
Note that Changing the string format of the WPF DatePicker does display "21 Nov 2019" in the dialog box.
However, string stDate = gDPickVisitDate.ToString
results in stDate
containing "11/21/2019 12:00:00 AM"
.
Compiler does not like gDPickVisitDate.Value
. I tried GetValue
with no success.