we can show the current date in odoo -V11- by multi format as bellow
<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d/%m/%Y')"/>
<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d')"/>
<span t-esc="context_timestamp(datetime.datetime.now()).strftime('
'%Y-%m-%d %H:%M'
')"/>
No comments:
Post a Comment