<span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d')"/>
I have using above code but i get this error:
Error to render compiling AST
TypeError: 'NoneType' object is not callable
Template: 1733
Path: /templates/t/t/form/div[2]/div[2]/div/p[1]/span
Node: <span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d')"/>
Can You help me to fix above problem?
Playing with dates:
1- http://learnopenerp.blogspot.com/2018/02/python-timedelta.html
2- http://learnopenerp.blogspot.com/2018/02/python-strftime-datetime-formatting.html
3- http://learnopenerp.blogspot.com/2018/01/python-date-manipulation.html
4- http://learnopenerp.blogspot.com/2016/09/how-to-convert-datetimedate-to.html