pydecker at gmail.com
Mon Jul 18 17:10:23 CEST 2005
On 18 Jul 2005 07:52:06 -0700, Jason <jason.massey at gmail.com> wrote:
> How do I form a new wxPython date using day, month and year?
> I've tried the wx.DateTimeFromDMY but it crashes in Pythonwin when I
> test it out and I get all manner of complaints when I try it from the
> command line.
> Surely there's an equivalent to the python datetime.date(2005,07,18)
Are you specifying the date in DMY format? Also, remember that the
months are zero based. This works fine on my systems (both OS X and
dt = wx.DateTimeFromDMY(18, 6, 2005)
-> Mon Jul 18 00:00:00 2005
More information about the Python-list