Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

convert string to date

Posted on 2014-03-07
3
Medium Priority
?
596 Views
Last Modified: 2014-03-07
is it possible to convert 20140228 to date 28/02/2014 with a formula
0
Comment
Question by:Jagwarman
[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
  • 2
3 Comments
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39912099
try this
=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"YYYY/MM/DD")

Open in new window

  assumed Cell A1 = 20140228



Thanks
0
 
LVL 8

Accepted Solution

by:
Naresh Patel earned 1500 total points
ID: 39912102
sorry just sequence change for year month date  try this
=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"DD/MM/YYYY")

Open in new window


Thanks
=TEXT(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)),"YYYY/MM/DD")

Open in new window

0
 
LVL 13

Expert Comment

by:Santosh Gupta
ID: 39912110
Assuming data in A1 cell
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
then change date format as dd/mm/yyyy from custom formating.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

610 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