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 » DateTimeCtrl and format ddmmyyyy
Re: DateTimeCtrl and format ddmmyyyy [message #9329 is a reply to message #9321] Fri, 27 April 2007 12:57 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
This is a bug/problem with Core function StrToDate. Specifically the problem is with the code:
		if(IsDigit(*s)) {
			char *q;
			n = strtoul(s, &q, 10);
			s = q;
		}

This normally reads the next number from the string s and stops when it encounters a non-digit char. When the date format doesn't include any non-digit characters it will just convert the whole string into a number, when the code that follows expects it to be a day, month or year number.

I can't see a workaround besides using non-digit characters as seperators. luzr?

[Updated on: Fri, 27 April 2007 13:01]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: DataTimeCtrl and format dd/mm/yyyy
Next Topic: Small issues....
Goto Forum:
  


Current Time: Fri Apr 26 21:56:06 CEST 2024

Total time taken to generate the page: 0.02895 seconds