Change format when saving to xml (DatePicker)

Apr 16, 2009 at 4:09 PM
I know it''s possible to change the way the date is formatted when shown and I have downloaded the source and added my own format.
But when it's saved in the xml file it is saved as mm/dd/yyyy but I would like to save it as YYYY-MM-DD or YYYY-MM-DDThh:nn:ss so it can be recognized by sharepoint as a datetime.

<toolkit:DatePicker Grid.Row="4" Grid.Column="1" SelectedDateFormat="MyOwn" SelectedDate="{Binding Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, XPath=dayFromSite}"/>