Excel 日期到字符串的转换 [英] Excel Date to String conversion
本文介绍了Excel 日期到字符串的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Excel 工作表的单元格中,我有一个日期值,例如:
In a cell in Excel sheet I have a Date value like:
01/01/2010 14:30:00
我想将该日期转换为文本,并且还希望文本看起来与日期完全一样.所以 01/01/2010 14:30:00
的日期值应该看起来像 01/01/2010 14:30:00
但在内部它应该是 Text.
I want to convert that Date to Text and also want the Text to look exactly like Date. So a Date value of 01/01/2010 14:30:00
should look like 01/01/2010 14:30:00
but internally it should be Text.
如何在 Excel 中执行此操作?
How can I do that in Excel?
推荐答案
=TEXT(A1,"DD/MM/YYYY hh:mm:ss")
(24 小时制)
=TEXT(A1,"DD/MM/YYYY hh:mm:ss AM/PM")
(标准时间)
这篇关于Excel 日期到字符串的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文