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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:34:07+00:00 2026-05-11T00:34:07+00:00

I have dates in the format 2008-12-23T00:00:00Z . This look a lot like a

  • 0

I have dates in the format 2008-12-23T00:00:00Z. This look a lot like a ISO 8601 format with a Zulu (UTC) timezone. I though the following code would parse it (using commons-lang) :

String pattern = DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT.getPattern(); Date d = DateUtils.parseDate(dateToParse, new String[] { pattern }); 

If I take the same pattern (yyyy-MM-dd'T'HH:mm:ssZZ) but remove the timezone, it works.

Do you know how I can recognize the Zulu timezone ? I have access only to Java 1.4 and Jakarta commons-lang. No Joda Time for me yet …

  • 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. 2026-05-11T00:34:08+00:00Added an answer on May 11, 2026 at 12:34 am

    Looks like a bug in commons-lang’s FastDateFormat. Tell them about it, and you should get a fix eventually. Till then you could try to preprocess the dates and replace ‘Z’ with ‘+00’

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

Sidebar

Related Questions

I have birth dates stored as datetime in SQL Server 2008 like so: 2010-04-25
In my project i am getting 2008-02-01T10:03:23.793-06:00 this date format in string i have
I have two dates in format(MM/dd/yyyy hh:mm:ss:SS). For the both dates I have converted
I have dates in the following format (yyyymmdd, 18751104, 19140722)... what's the easiest way
I have dates as a list in the following format: 09-2012,10-2012,01-2013 What will be
I have a list of dates in the format 2012-06-18 which I'm echoing out
I have a file with dates in the format YYYY-mm . I am trying
I have a Mysql table that stores dates in the format (YYYY-MM-DD HH:MM:SS). What
I want to match dates that have the following format: 2010-08-27, 2010/08/27 Right now
I have a form input in my application that accepts dates in the format

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.