convert MMM DD, YYYY HH:MM:SS am in excel

2019-08-25 03:48发布

I have a spreadsheet which contains the loading times for my website. I want to find the peak hour for my website.

However the dates are stored in the following format:

Jun 02, 2014 01:13:08 am
MMM DD, YYYY HH:MM:SS am / pm

How can I convert this in to date that excel will understand?

标签: excel
1条回答
2楼-- · 2019-08-25 04:22

To convert your "pseudo-dates" into real dates, select them and run:

Sub ConvertDates()
    Dim r As Range
    For Each r In Selection
        r.Value = CDate(r.Text)
    Next r
End Sub
查看更多
登录 后发表回答