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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:23:22+00:00 2026-06-10T17:23:22+00:00

I am trying to import a given string representing a Date in the format:

  • 0

I am trying to import a given string representing a Date in the format:

2007-03-12T00:00:00.000+01:00 

Now to create a new Date Object i use Joda Library using:

DateTime date = new DateTime(year, month, day, hour, minute, second);

However, i want to make sure two things here:

  • How to handle GTM +1 in this date time context?
  • Is there anyway,
    that i don’t have to parse this string, and the Date Object can be
    initialized directly with this string?
  • 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-10T17:23:23+00:00Added an answer on June 10, 2026 at 5:23 pm
    DateTime date = DateTime.parse("2007-03-12T00:00:00.000+01:00");
    

    As has been mentioned in other answers, the offset is supposed to be parsed along with the rest of the string according to the documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to determine how much heap any given TYPE_INT_ARGB BufferedImage will use so
In the below given function i am trying to create an alertDialog box with
I'm trying to create a possible list of codons given a protein sequence. Basically,
I'm trying to use SqlBulkCopy to import a bunch of data to our website.
im trying to import html table data to an excel file and have succeeded
I am trying to import the MoPub sdk into eclipse, but I am getting
I'm trying to import an XML file that contains a list of points for
I am trying this import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream;
I'm currently trying to import about 10000 rows (from a CSV file) into an
I'm trying to import our SVN repository into Git. When I run either this

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.