简体   繁体   English

将字符串“dd/mm/yy HH:mm:ss”更改为可接受的日期/时间格式

[英]Change string "dd/mm/yy HH:mm:ss" into accepted date/time format

I have a very rare date format dd/mm/yy HH:mm:ss that reads in as a string and I want to transform it into a date/time format PowerBI will accept.我有一个非常罕见的日期格式 dd/mm/yy HH:mm:ss,它作为字符串读入,我想将其转换为 PowerBI 可以接受的日期/时间格式。 I managed to change the format into "dd/mm/yyyy HH:mm:ss", but now I have to switch the day part with the month.我设法将格式更改为“dd/mm/yyyy HH:mm:ss”,但现在我必须将日期部分切换为月份。

How can I do this or is there an easier solution to my problem?我该怎么做,或者我的问题有更简单的解决方案吗?

Select the column of date_time and change the data type from column tools to Date/time (pic 1) and after that select the format (pic 2) from column tools pic_1 Select date_time 列并将数据类型从列工具更改为日期/时间(图 1),然后 select 来自列工具pic_1格式(图 2)

pic_2 pic_2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Power BI,获取 Excel 数据自动将日期时间(yyyy/mm/dd hh:mm:ss)列转换为整数 - Power BI, get Excel Data automatically convert Date Time (yyyy/mm/dd hh:mm:ss) column to whole number 如何将 Power BI 日期/时间格式从日、月 dd、yyyy 更改为 mm/dd/yyyy - How to change Power BI Date/Time format from Day, Month dd, yyyy to mm/dd/yyyy Power BI 将 HH:MM:SS 格式和十进制持续时间格式转换为 MM:SS 格式 - Power BI convert both HH:MM:SS format and decimal duration format to MM:SS format Power Bi Visual Table 中“hh:mm:ss”格式未聚合过去 24 小时的持续时间总和 - Sum of Time Duration Not Aggregating past 24 Hours in “hh:mm:ss” format in Power Bi Visual Table PowerBi:从 dd/mm/yyyy hh:mm:ss 问题中提取月份 - PowerBi: Extract month from dd/mm/yyyy hh:mm:ss issue 将 [Days, hh:mm.ss] 转换为 [hh:mm:ss] - Convert [Days, hh:mm.ss] to [hh:mm:ss] 在PowerBI图表中将持续时间显示为“hh:mm:ss” - Show time duration as “hh:mm:ss” in PowerBI charts PowerBi 持续时间以 hh:mm:ss 计算 - PowerBi Duration calculation in hh:mm:ss PowerBI - 将 DatePicker 切片器中的日期格式化为 dd/mm/yyyy - PowerBI - Format Date in DatePicker slicer as dd/mm/yyyy 在DAX中将秒转换为HH:MM:SS格式时如何避免空格 - How to avoid blanks while converting seconds to HH:MM:SS format in DAX
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM