How to convert string to date?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
22800
화면
How to convert string to date?
Hello Giezel Esteves,
Here is the python code to convert string to date.
import datetimeHere "24052010" is string. you can pass a variable at here.
datetime.datetime.strptime('24052010', '%d%m%Y').date()
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
3
7월 23
|
27903 | ||
|
2
6월 22
|
6142 | ||
|
2
9월 21
|
5258 | ||
|
1
11월 20
|
8532 | ||
|
2
3월 19
|
6512 |
Try this: https://learnopenerp.blogspot.com/2021/07/how-to-use-and-convert-date-field-format-odoo.html