How to increment a date, and how to convert it ?

D

durumdara

Hi !

1.
I have a code. I want to convert from wx.DatePickerCtrl.Value to
mx.DateTime.
But I don't know, how to do it simply.

2.
I need to increment this date by 6 days.
How to do it ? (I search for a simple way, like Delphi-s d2:=d1+6)


The code section is:

from mx import DateTime as mxDT
v=self.datePickerCtrl1.GetValue()
print type(v),v # wx._misc.DateTime
d1=mxDT.Date(2005,01,01)
print type(d1),d1 # DateTime

Thanks for advance: dd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,264
Messages
2,571,323
Members
48,007
Latest member
Elvis60357

Latest Threads

Top