Solved

Regarding date format.

Posted on 2016-09-27
3
20 Views
Last Modified: 2016-11-04
I had this question after viewing Finding missing dates..
Also I would like to change the date format to YYYY-MM-DDThh:mm:ss.
I tried changing it by going to text to columns and also by formatting cells but it didn't work. :(
0
Comment
Question by:Prashansa Shrestha
3 Comments
 
LVL 6

Expert Comment

by:DPatel
ID: 41817710
For Date and time Formatting you can use this function :
=TEXT(<your date and time column>, "YYYY-MM-DD hh:mm:ss")
0
 
LVL 32

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 41817794
Because your Date and TIme stamp is not in a recognised format, use the following formula to convert it:

=DATE(MID(A2,7,4),MID(A2,4,2),LEFT(A2,2))+TIMEVALUE(RIGHT(A2,5))

This assumes that your text dates represent "dd.mm.yyyy" format.

Then just use a Custom format of "yyyy-mm-dd hh:mm:ss" (without the quotes).

Thanks
Rob H
0
 
LVL 14

Expert Comment

by:frankhelk
ID: 41873648
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Rob Henson (https:#a41817794)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

frankhelk
Experts-Exchange Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now