Excel Date Hms被削减

时间:2015-07-31 15:04:52

标签: excel

我正在尝试使用excel读取csv文件。

我可以将列拆分为分隔符,但其中一个字段是日期时间字段,如2015-07-01 12:01:59,当数据被拆分为列时,日期时间更改为2015-07-01 12:01

我尝试过不同的格式选项,包括Custom-> 0,没有运气。

我能成功获得整个日期时间的唯一方法是在列的开头放置一个撇号,但是,如果我有几千个记录,这是不实际的。如何才能让excel成为一个痛苦的人。

1 个答案:

答案 0 :(得分:2)

I'm thinking it's just a formatting issue. You're on the right track to try the custom format. I selected the column header for the date and used "yyyy-mm-dd hh:mm:ss" as shown here:

excel custom date format