gpt4 book ai didi

excel - CSV 文件/Excel 中的日期/时间格式

转载 作者:行者123 更新时间:2023-12-03 01:40:56 25 4
gpt4 key购买 nike

日期/时间格式如下:

Date/Time
02-05-2018 07:45
02-05-2018 07:50
1/17/2018 2:15
1/17/2018 2:30
1/17/2018 2:45

Above "02-05-2018" is suppose to 5th of feb, but its taking 2nd of May.

基本上格式如下:

02-05-2018 07:45 - dd-mm-yyyy hh:mm 实际值 43222.32292 这是我相信的文本格式

Now I need to all such entries to convert to normal date/time format : mm-dd-yyyy hh:mm

请告诉我,尝试了几种方法但没有成功

最佳答案

问题在于文件的日期格式与 Windows 区域设置中计算机的短日期格式不同。

不要打开该文件。相反,您可以导入该文件。执行此操作时,数据导入向导将打开,您可以在传入的 csv 文件中定义日期 (MDY) 的格式。

具体在哪里可以找到IMPORT方法,具体取决于您的 Excel 版本。您可能必须将时间与导入/转换过程的日期分开,但您随时可以通过稍后添加两个单元格来重新组合。

关于excel - CSV 文件/Excel 中的日期/时间格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48767432/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com