跳到主要內容

如何在Excel中將日期/時間格式的單元格轉換為僅日期?

如果僅要將日期時間格式的單元格轉換為日期值(例如2016/4/7 1:01 AM到2016/4/7),本文可以為您提供幫助。

僅使用公式將日期/時間格式單元格轉換為日期
只需單擊幾下即可輕鬆刪除日期中的所有時間
僅使用Kutools for Excel將日期/時間格式單元格轉換為日期


僅使用公式將日期/時間格式單元格轉換為日期

下面的公式將幫助您將日期/時間格式的單元格轉換為僅在Excel中的日期。

1.選擇一個空白單元格,您將放置日期值,然後輸入公式 = MONTH(A2)&“ /”&DAY(A2)&“ /”&YEAR(A2) 進入編輯欄,然後按 Enter 鍵。

2.您只能看到基於日期/時間單元格的所選單元格中填充了日期值。 繼續選擇日期單元格,然後向下拖動“填充手柄”以顯示基於其他日期/時間單元格的所有日期。 看截圖:


只需單擊幾下即可輕鬆刪除日期中的所有時間

本節將向您展示如何使用Kutools for Excel的從日期中刪除時間實用工具輕鬆地從選定的日期單元格中刪除所有時間。 請執行以下操作。

申請前 Excel的Kutools首先下載並安裝.

1.從中刪除時間後,選擇一個空白單元格以查找日期(例如C2)。 請點擊 庫工具 > 公式助手 > 公式助手。 看截圖:

2。 在裡面 公式助手 對話框,請進行以下配置。

  • 選擇一個公式 框,找到並選擇 從日期中刪除時間;
    保養竅門:您可以檢查 篩選 框,在文本框中輸入特定單詞以快速過濾公式。
  • 選擇帶有日期時間的單元格,您只需在其中保留日期 發布時間 框;
  • 點擊 OK 按鈕。

3.繼續選擇第一個結果單元格,然後向下拖動“填充手柄”以根據需要獲取所有結果,如下圖所示:

現在,所有時間均從指定的日期中刪除。

  如果您想免費試用(30天)此實用程序, 請點擊下載,然後按照上述步驟進行操作。


僅使用Kutools for Excel將日期/時間格式單元格轉換為日期

在這裡,我向您推荐一個方便的工具– Excel的Kutools。 隨著它 套用日期格式 實用程序,您可以根據需要輕鬆地將日期/時間格式的單元格轉換為任何類型的日期格式。

申請前 Excel的Kutools首先下載並安裝.

1.選擇只需要顯示日期值的日期/時間格式單元格,然後單擊 庫工具 > 格式 > 套用日期格式。 看截圖:

2。 在裡面 套用日期格式 對話框中,選擇日期格式 日期格式 框,然後單擊 OK 按鈕。

現在,日期/時間格式單元格僅顯示為日期值。 看截圖:

備註:儘管日期/時間格式的單元格僅顯示為日期,但在編輯欄中的顯示值仍為日期/時間格式。 如果要將公式欄中顯示的值轉換為實際值,請選擇它們並單擊 庫工具 > 到實際。 看截圖:

  如果您想免費試用(30天)此實用程序, 請點擊下載,然後按照上述步驟進行操作。


將日期/時間格式單元格僅轉換為日期


相關文章:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
esiste una formula che consente di convertire il formato lunedì 04/09/2023 13:34 in 04/09/23 ?
This comment was minimized by the moderator on the site
Interesting to the view the response to this - but "int(a2)" then format will achieve the same thing by dropping the partial date string from the end of the integer.
This comment was minimized by the moderator on the site
I'm trying to convert dd/mm/yyyy hh:mm to local times. i.e Time Zone (GMT) 21/09/2022 05:01 to Result (EST From (GMT)) 21/09/2022 00:01. Time difference is -5 Hours
This comment was minimized by the moderator on the site
So Helpful, thank you!
This comment was minimized by the moderator on the site
sir i have date and time in this(46:32.8") format , how can i change it in date and time format??????

This comment was minimized by the moderator on the site
I HAVE DATE IN 2024-05-01 17:38:06 FORMATE BUT I WANT TO CHANGE IN 24-05-2018 SO IT IS POSSIBLE PLEASE GIVE ANSWER AS SOON AS POSSIBLE
This comment was minimized by the moderator on the site
Good day,
Sorry can't really understand what you said. Pease try to change the cell format to dd-mm-yyyy.
This comment was minimized by the moderator on the site
does not work at all , only USA formats works. Normally you put the day first as 31/10/2018 Canada , UK, etc. which is Oct 31 2018 but Kutools does not work , it just assumes the US format is the original and doesn't ask or try to figure out, there is not 31 months so it should know that is the day. I guess I will uninstall Kutools and look for something else. It seems to me there is better program that recognizes any date formats and converts.
This comment was minimized by the moderator on the site
This works better: =DATE(YEAR(A2),MONTH(A2),DAY(A2))
This comment was minimized by the moderator on the site
This was good. I follow your example and applied also =TIME(HOUR(A2),MINUTE(A2),SECOND(A2)) so to place in a separated cell the time!
This comment was minimized by the moderator on the site
I think using ROUNDDOWN(A2,0) would be easier.
This comment was minimized by the moderator on the site
Thanks a lot. it is good.
This comment was minimized by the moderator on the site
An easier formula would be
=text(A2,"mm/dd/yyyy")
Sello - for your issue just swap the mm and dd around.
This comment was minimized by the moderator on the site
Appreciated. It helped me
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations