QDateTimePicker MonthYear format

thread: 4 messages  |  last: about 4 years ago  |  started: friday, december 7, 2007, 5:10 pm pst


#1  |  bhazzard (Helena, MT) United States of America
Friday, December 7, 2007, 5:10 PM PST

I think it would be helpful to allow a QDateTimePicker format of MonthYear. Consider that Credit Card Expiration Dates do not include a day.

Otherwise any time someone wants to use QDateTimePicker in the context of Credit Card processing they will have to extend and or manually code the components. This is very undesirable.

It has also come to my attention that the reason that the QDateTimePicker class does not have this functionality supported is because it generates a valid QDateTime object which requires all three fields, so it may be necessary to change both the QDateTimePicker and the QDateTime classes to achieve this functionality.

#2  |  alex94040 (Seattle, WA) United States of America Qcodo Core Contributor
Monday, December 10, 2007, 8:41 AM PST

Yep, we'd like just month/year support for a datepicker, too. We had to build a custom control for that.

#3  |  bhazzard (Helena, MT) United States of America
Monday, December 10, 2007, 9:29 AM PST

You said you built a custom control for that functionality. I wonder if you would be willing to share it by uploading it to the QForge site. It won't be as convenient as having it in the core, but having a custom component available for download would be a great start.

Thank You,
Brian

#4  |  alex94040 (Seattle, WA) United States of America Qcodo Core Contributor
Friday, December 14, 2007, 11:43 PM PST

We didn't even use a real custom control - just two dropdowns, one with the months, another with the years. Really not worthy of sharing, i don't think :-)



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.