Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8833497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:47:35+00:00 2026-06-14T08:47:35+00:00

I get this kind of data from XML document : 2012-08-29T18:18:00+02:00 and I’d like

  • 0

I get this kind of data from XML document :

2012-08-29T18:18:00+02:00

and I’d like to convert it with the DateTime object. So I can manage it as I want, getting only day and/or month.

But if I do it :

DateTime.Parse("2012-08-29T18:18:00+02:00").Date

I get somethings like \/Date(1346191200000)\/ :O

Where am I wrong? I think I need to specify the type of date when I parse it?


After the suggestions, I tried with this data :

string dataStr = "2012-11-15T13:50:58+01:00";
DateTime data = DateTime.Parse(dataStr).Date;
Response.Write(data.Hour + "<br />");

but the output is 0, so the time is missing. Why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:47:37+00:00Added an answer on June 14, 2026 at 8:47 am

    According to your latest update:

    DateTime d = DateTime.ParseExact("2012-11-15T13:50:58+01:00", "yyyy-MM-ddTHH:mm:ssK", null);
    
    Response.Write(d.Hour + "<br />");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using SimpleXML to get pieces of data from an XML web-service response. We
What kind of date format is this and how can I get this formatted
This is kind of embarrassing but I cannot for some reason get his CSS
this lib is kind of awesome to get cpu, ram and other staff. However,
I get this error while accessing a php script: W/System.err: Error reading from ./org/apache/harmony/awt/www/content/text/html.class
I get this error when I use simplejson from django.utils in google app engine
I get this RSpec error when I try to embed one document in another.
This is kind of a two part question. Is it possible to retrieve data
Suppose we have this XML document <?xml version=1.0 encoding=ISO-8859-1?> <!DOCTYPE note [ <!ELEMENT note
I'm using a Java program to POST some XML data from a remote client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.