U++ framework
Do not panic. Ask here before giving up.

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: Thu Sep 17 00:53:07 GMT+2 2026

Total time taken to generate the page: 0.00775 seconds