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:
[TABLE="width: 291"]
<colgroup><col></colgroup><tbody>[TR]
[TD]
2018-07-06T08:05:02.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:04.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:06.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:07.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:08.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:08.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:08.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:08.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:08.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:11.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:13.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:16.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:19.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:21.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:21.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:23.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:24.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:26.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:29.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:31.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:38.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:39.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:40.000+1000​
[/TD]
[/TR]
[TR]
[TD]
2018-07-06T08:05:41.000+1000
[/TD]
[/TR]
</tbody>[/TABLE]
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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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.
[TABLE="width: 779"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:02.000[/TD]
[TD="colspan: 2"]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))[/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:04.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:06.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:07.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:08.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:08.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:08.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:08.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:08.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:11.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:13.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:16.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:19.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:21.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:21.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:23.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:24.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:26.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2018-07-06T08:05:29.000[/TD]
[TD="align: right"]6/07/2018[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
It works for me. For example, the result for the first item on your list is : [TABLE="width: 230"]
<tbody>[TR]
[TD="align: right"]2018/07/06 08/05/02.000[/TD]
[/TR]
</tbody>[/TABLE]

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,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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