[wxDateTime] Formatting output according to user's regional &
language options
Volker Bartheld
dr_versaeg at freenet.de
Fri Apr 20 09:01:17 PDT 2007
Hi folks!
Sorry if this was discussed before, but I just can't find a way how to make
wxDateTime format it's output in the same way as the user has configured it
for his account/system (i. e. WinXP: Start/Settings/Control Panel/Regional
and Language Options/Time.Short date.Long date).
A quick test with
wxDateTime now(time(NULL));
now.SetCountry(wxDateTime::Country_Default);
wxString s=now.Format(wxT("%c"));
made me end up with "04/20/07 17:58:22" (US default, I guess) in s where it
should have been "Freitag, 20. April 2007 17:58:22" or "20.04.2007
17:58:22". Is there any way to look the correct formatting string up and
pass it to wxDateTime::Format() etc.?
THX.
Volker
--
mailto: V B A R T H E L D at G M X dot D E
More information about the wx-users
mailing list