> I use datetime.combine() it says "TypeError: combine() argument 1 must
> be datetime.date, not Field"
> any suggestion?

Well, this might not help at all... but maybe you can pick out
something to give you a step forward :)

import datetime, time
# create a datetime for the example
d1 = datetime.datetime.today()
# convert the datetime to date
d2 = datetime.date(*time.strptime(d1.strftime("%Y-%m-%d"), "%Y-%m-%d")
[0:3])
# here's the proof
print type(d1), type(d2)

Ugly as hell! :-)
-D

Reply via email to