Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Can anyone help me please.
I have this field type date:
2016-01-01 and i want to get the month then convert it to its name.
Need help friends please.
#import datetime library
from datetime import datetime
month = datetime.strptime('2016-01-01', "%Y-%m-%d").strftime('%B')#Converting a string format datetime into datetime() type.
You can use different directives as per your requirement in place of "%B". You can find them \here.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/19/16, 5:52 AM|
|Seen: 1288 times|
|Last updated: 3/4/16, 7:38 AM|