On 18 Jul 2005 07:52:06 -0700, Jason <[EMAIL PROTECTED]> 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

import wx
dt = wx.DateTimeFromDMY(18, 6, 2005)
print dt
-> Mon Jul 18 00:00:00 2005

Reply via email to