?
Solved

XML Value as date in Excel

Posted on 2012-09-18
4
Medium Priority
?
361 Views
Last Modified: 2012-09-18
Copy and paste the following XML in notepad and save as an XML, when I open it with Excel "as an XML table" Column B is accepted as a date but not column A.
Any idea what is wrong?

<DocumentElement>
  <Test>
    <Status_Date>2012-09-06 01:00 PM</Status_Date>
    <Purchase_Date>2012-09-06</Purchase_Date>
  </Test>
  <Test>
    <Status_Date>2012-09-06 01:00 PM</Status_Date>
    <Purchase_Date>2012-09-06</Purchase_Date>
  </Test>

</DocumentElement>

Open in new window

0
Comment
Question by:koossa
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Shanan212
ID: 38410928
It works without the time on  your status date. Do you require the time?
0
 

Author Comment

by:koossa
ID: 38411017
Yes
0
 
LVL 13

Accepted Solution

by:
Shanan212 earned 2000 total points
ID: 38411050
<DocumentElement>
  <Test>
    <Status_Date>2012-09-06T13:00:00</Status_Date>
    <Purchase_Date>2012-09-06</Purchase_Date>
  </Test>
  <Test>
    <Status_Date>2012-09-06T01:00:00</Status_Date>
    <Purchase_Date>2012-09-06</Purchase_Date>
  </Test>

</DocumentElement> 

Open in new window


Try the above. You need to put 'T' and then format the time as such.
0
 

Author Closing Comment

by:koossa
ID: 38412358
Thank you!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

830 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