problem formatting dates from text fields.

John Machin sjmachin at lexicon.net
Sun Dec 3 16:35:25 EST 2006


Dennis Lee Bieber wrote:
> On Mon, 4 Dec 2006 01:11:30 +0530, "krishnakant Mane"
> <researchbase at gmail.com> declaimed the following in comp.lang.python:
>
> > I am tired searching for some good tutorial that can explain the basic
> > functionality of wx.datetime class and the datetime picker.
> > I want to display the date in dd/mm/yyyy format and allow the user to
> > change the dates.
>
> 	Simplest is probably to do what many web-sites use for credit card
> expiration dates... Ignore any pre-built date-time modules...
>
> 	Create three integer fields, make the first two drop-down lists
> pre-populated with days and months. And validate the results later (just
> to cover someone putting in 31 02 xxxx).
>

My 2 cents worth:

(1) this annoys the bejaysus out of data inputters who can type
"31\t12" a lot faster than they can pick it out of two drop-down lists.

(2) this would annoy the bejaysus out of data users if they were aware
of the extent of off-by-one errors caused by using drop-down lists.

Cheers,
John




More information about the Python-list mailing list