compare two date?
Asked by
shanky
Hello,
I want compare 2 date.
'start_date' : fields.date('Start Date'),
'end_date' : fields.date('End Date')
for obj in self.browse(
if obj.start_date <= obj.end_date:
print "End Date is big"
However, I try to print obj.end_date and obj.start_date this show me boolean (True,False)value.
and also how to print date.
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Anup(SerpentCS)
- Solved:
- Last query:
- Last reply:
To post a message you must log in.