I have a DateTimePicker in WPF. The dateTimePicker give me an European Format
In my DateTimePicker, i select "01/02/2014" ( in european format )
I would like to read the value, and convert it in a shortDateString with the US culture.
I have done this :
CultureInfo m_UsCulture = new CultureInfo("en-us");
string str = m_dDate.Date.ToShortDateString().ToString(m_UsCulture);
The str variable is : "01/02/2014" instead of "2/1/2014"
The ShortDateString appear to be OK, but not the "ToString(m_UsCulture);".
I would like to do this in a one line please. Have you an idea for this error ?
Thanks a lot :)