Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » CalendarCtrl » DataTimeCtrl and format dd/mm/yyyy
Re: DataTimeCtrl and format dd/mm/yyyy [message #9264 is a reply to message #9257] Tue, 24 April 2007 16:55 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1213
Registered: March 2006
Location: Italy
Senior Contributor
mrjt wrote on Tue, 24 April 2007 11:37

See Core/TimeDate.cpp. It looks like these should change the format for every date/string conversion:
void   SetDateFormat(const char *fmt);

Sets the format for date to string conversions (default: "%2:02d/%3:02d/%1:4d") and
void   SetDateScan(const char *scan);

Sets the format expected when doing string-date conversions (default: "mdy").

James


Thanks James,
Unfortunately those methods work very well with the date coming from GetSysTime(), but seems have no effect in the DateTimeCtrl in that it is diplayed the same format mm/dd/yyyy irrispective of their setting.
Perhaps I need to modify the control but before to try to do it I would like to be sure that there is no other methods available. This Ctrl is rather young so everything could not be present now.

Luigi
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: DateTimeCtrl
Next Topic: DateTimeCtrl and format ddmmyyyy
Goto Forum:
  


Current Time: Tue Aug 12 06:13:00 CEST 2025

Total time taken to generate the page: 0.05881 seconds