Convert Created Date format from database value
Hi
I need to convert the created date format from database value.
My Code :
# -*- encoding: utf-8 -*-
from osv import osv, fields
import os
class purchase_
_name = "purchase.order"
_inherit = 'purchase.order'
_columns = {
date(
}
purchase_
using this code, i can get the create_date value from the database but it shows 2011-07-06 12:35:31.08
and then place this field and value in the purchase order form.
I need to change the date format to become Y-M-D only 2011-07-06
is there any way to change the format? what python code should i add?
Thanks OpenErp Community.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- digitalsatori(Shine IT)
- Solved:
- Last query:
- Last reply: