Convert a time format to readable time

Alfie101

New Member
Joined
Jan 29, 2016
Messages
19
Hi,
I have a file with many rows of time data in the format below:
2018-07-06T08:05:02.000+1000​
2018-07-06T08:05:04.000+1000​
2018-07-06T08:05:06.000+1000​
2018-07-06T08:05:07.000+1000​
2018-07-06T08:05:08.000+1000​
2018-07-06T08:05:08.000+1000​
2018-07-06T08:05:08.000+1000​
2018-07-06T08:05:08.000+1000​
2018-07-06T08:05:08.000+1000​
2018-07-06T08:05:11.000+1000​
2018-07-06T08:05:13.000+1000​
2018-07-06T08:05:16.000+1000​
2018-07-06T08:05:19.000+1000​
2018-07-06T08:05:21.000+1000​
2018-07-06T08:05:21.000+1000​
2018-07-06T08:05:23.000+1000​
2018-07-06T08:05:24.000+1000​
2018-07-06T08:05:26.000+1000​
2018-07-06T08:05:29.000+1000​
2018-07-06T08:05:31.000+1000​
2018-07-06T08:05:38.000+1000​
2018-07-06T08:05:39.000+1000​
2018-07-06T08:05:40.000+1000​
2018-07-06T08:05:41.000+1000

<colgroup><col></colgroup><tbody>
</tbody>
I should like to know please how to convert it to a format preferably like this: day/month/year hours/mins/seconds/milliseconds
Preferably via a formula. Alternatively or as well to unix epoch time.
That would be a big help.
Thank you,
Alfie101
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
What does the +1000 mean?

Try the following formula and format the cells as :- dd/mm/yyyy hh/mm/ss.000

=DATE(LEFT(A2,4),MID(A2,6,2),MID(A2,9,2))+TIME(MID(A2,12,2),MID(A2,15,2),MID(A2,18,3))
 
Upvote 0
I am not sure what the +1000 means, it came that way.
The formula seems to work for the date conversion but not the time (and not down to milliseconds if indeed it can go that far).
Thank you footoo,
Alfie101
 
Upvote 0
In what way is it not working?
Give an example of data before conversion and the formula result.
Did you format the formula cells properly?
 
Upvote 0
Hi footoo,
Example below...thanks.
The original time data is in column A, the result of application of the formula in column B (all dates without times) except for B2 which shows the formula actually used as applied down column B.
2018-07-06T08:05:02.000DATE(LEFT(A2,4),MID(A2,6,2),MID(A2,9,2))+TIME(MID(A2,12,2),MID(A2,15,2),MID(A2,18,3))
2018-07-06T08:05:04.0006/07/2018
2018-07-06T08:05:06.0006/07/2018
2018-07-06T08:05:07.0006/07/2018
2018-07-06T08:05:08.0006/07/2018
2018-07-06T08:05:08.0006/07/2018
2018-07-06T08:05:08.0006/07/2018
2018-07-06T08:05:08.0006/07/2018
2018-07-06T08:05:08.0006/07/2018
2018-07-06T08:05:11.0006/07/2018
2018-07-06T08:05:13.0006/07/2018
2018-07-06T08:05:16.0006/07/2018
2018-07-06T08:05:19.0006/07/2018
2018-07-06T08:05:21.0006/07/2018
2018-07-06T08:05:21.0006/07/2018
2018-07-06T08:05:23.0006/07/2018
2018-07-06T08:05:24.0006/07/2018
2018-07-06T08:05:26.0006/07/2018
2018-07-06T08:05:29.0006/07/2018

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
It works for me. For example, the result for the first item on your list is :
2018/07/06 08/05/02.000

<tbody>
</tbody>

All I can think of is that you have not formatted the cells as dd/mm/yyyy hh/mm/ss.000
 
Upvote 0

Forum statistics

Threads
1,215,043
Messages
6,122,816
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top