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 » DropTime and DropDate format
DropTime and DropDate format [message #52479] Sun, 06 October 2019 17:01 Go to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
Hello,

I am fighting with a DropTime and DropDate ctrl. I tried several things without success.
On a MySQL database the date has the format

YYYY-MM-DD

but when sent on those ctrls, for example with

dd <<= (Date) sql[date];
dt <<= AsString(sql[datetime]);

it is displaied has

MM/DD/YYYY

How to le appear the original format? I am mistaking the way to pass the data to the ctrls?

Thanks,
Luigi
Re: DropTime and DropDate format [message #52509 is a reply to message #52479] Mon, 14 October 2019 10:23 Go to previous message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
Its derived from EditDate. You need to replace convertor in EditDate (EditField::SetConvert).

Mirek
Previous Topic: New DateTimeCtrl behaviour
Goto Forum:
  


Current Time: Thu Oct 17 12:05:54 CEST 2019

Total time taken to generate the page: 0.01700 seconds