This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi Experts,
I want to convert the date format of "created_at" from twitter API to the format as "%Y-%m-%d %H:%M:%S", throuth Python or other ways.
I've downloaded Python and can use it on Power Query of BI.
Sorry for not knowing exact script of Python on BI, could you please kindly tell me the script?
Best regards.
Solved! Go to Solution.
@Anonymous
I added a custom column in PQ to convert the given date-time to the desired format. Please check the attached file. You can do further formatting in Power BI once you load the table to the model.
let
m = Text.Middle([Column1],4,3),
d = Text.Middle([Column1],8,2),
y = Text.End([Column1],4),
t= Text.Middle([Column1],11,8)
in
DateTime.FromText ( y &"-"& m &"-"& d &" "& t
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you for your quick reply!
It is the example of the date format of "created_at" column and the date format that I want to convert.
from
Wed Jun 30 14:54:36 +0000 2021
to
2021-6-30 14:54:36
Best regards,
@Anonymous
I added a custom column in PQ to convert the given date-time to the desired format. Please check the attached file. You can do further formatting in Power BI once you load the table to the model.
let
m = Text.Middle([Column1],4,3),
d = Text.Middle([Column1],8,2),
y = Text.End([Column1],4),
t= Text.Middle([Column1],11,8)
in
DateTime.FromText ( y &"-"& m &"-"& d &" "& t
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Dear Fowmy
It works!!
I really appreciate your help!
@Anonymous
Can you share some sample dates for "Created Date"? This can be done using M in PQ
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |