mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 12:30:07 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
13 lines
368 B
Python
13 lines
368 B
Python
|
|
dt = wx.DateTime() # Uninitialized datetime
|
|
bDate = "25/12/2012"
|
|
|
|
if not dt.ParseFormat(bDate, "%d-%m-%Y"):
|
|
# This datetime format is wrong on purpose
|
|
print "Wrong format"
|
|
|
|
elif dt.ParseFormat(bDate, "%d/%m/%Y"):
|
|
# This is correct
|
|
print "Format OK!", dt
|
|
|