I want to display date in local system format.
For example : dd/mm/yyyy for france and mm/dd/yyyy for us.

I try the following code but it didn't work :


CTime time = CTime::GetCurrentTime();
CString strDate = time.Format(_T("%x"));




In fact this code ALWAYS results in : mm/dd/yyyy

Please help