[wxDateTime] Formatting output according to user's regional & language options

Vadim Zeitlin vadim at wxwindows.org
Fri Apr 20 09:49:44 PDT 2007


On Fri, 20 Apr 2007 18:01:17 +0200 Volker Bartheld <dr_versaeg at freenet.de> wrote:

VB> A quick test with
VB> 
VB>     wxDateTime now(time(NULL));
VB>     now.SetCountry(wxDateTime::Country_Default);
VB>     wxString s=now.Format(wxT("%c"));
VB> 
VB> made me end up with "04/20/07 17:58:22" (US default, I guess)

 Did you use wxLocale or call setlocale(LC_ALL, "")?

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list