Solved

Regarding date format.

Posted on 2016-09-27
3
31 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Expert Comment

by:D Patel
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 33

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

730 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