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 6943985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:13:37+00:00 2026-05-27T13:13:37+00:00

I get this date as a string from SOAP message 2009-12-02T12:58:38.415+01:00 Most i could

  • 0

I get this date as a string from SOAP message

"2009-12-02T12:58:38.415+01:00"

Most i could i could identify and vary on subject was

to play with this format yyyy-MM-dd ? hh:mm:ss.????

I tried different combinations using SSS T z Z instead of ‘?”

DateFormat df = new SimpleDateFormat("... various formats ...");
System.out.println(df.parse("2009-12-02T12:58:38.415+01:00"));

but no success.

Any idea ?

Thanks

  • 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-05-27T13:13:37+00:00Added an answer on May 27, 2026 at 1:13 pm

    you have to change the timezone part. try this:

    String a = "2009-12-02T12:58:38.415+01:00";
        a = a.replaceFirst(":(?=\\d+$)", "");
        final DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        System.out.println(df.parse(a));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this piece of code to get string representing date yyyy-mm-dd from
This is the case. I get the date from DatePicker control: DateTime current =
I am trying to get a formatted date string directly from a LINQ-to-Entities query
I get this string from the the API I am working with how do
Can someone help me to extract int timestamp value from this string /Date(1242597600000)/ in
How can i get this 2 dates in this string? FROM 2011-08-01 00:00 TO
Can anybody help me get this date format like Fri, 01 Oct 22:26:23 +0200
I cannot seem to get this date picker working at all. I know it
I have a UIDatePicker and I get the date using this: NSDate *pickerDate =
How do I get the system date and time in this format: $systime=12/january/2010 10.30

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.