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
Solved

convert string to date

Posted on 2014-03-07
3
570 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
  • 2
3 Comments
 
LVL 8

Expert Comment

by:itjockey
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:
itjockey earned 500 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

856 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