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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:50:07+00:00 2026-05-27T02:50:07+00:00

My problem lies in parsing a custom date string in BlackBerry Java. Java SE

  • 0

My problem lies in parsing a custom date string in BlackBerry Java. Java SE provides the class SimpleDateFormat which has the ability to parse a String against a given pattern/format.

However, in BlackBerry the SimpleDateFormat class does not contain the method to parse, only format a date into the desired pattern.

I am aware of HttpDateFormatter which can parse a String, however, it is a strict parser that will only work with three date formats that HTTP has used in the past:

  • Sun, 06 Nov 1994 08:49:37 GMT (RFC 822, updated by RFC 1123)
  • Sunday, 06-Nov-94 08:49:37 GMT (RFC 850, obsoleted by RFC 1036)
  • Sun Nov 6 08:49:37 1994 (ANSI C’s asctime() format)

I will be parsing date strings coming from the Twitter API in the format:

  • “Mon Jun 27 19:32:19 +0000 2011”

Before going away and writing my own error prone date parse, is there any other routes I could investigate?


Regards,

Thomas Nadin

  • 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-27T02:50:07+00:00Added an answer on May 27, 2026 at 2:50 am

    Yes, as of 7.1, there is no method to parse with a custom format in BB Java API. You should implement your own. I did it long ago using Calendar, with the same format as the Java SE API.

    Before doing your own one, have a look at OpenSource projects like Joda, Guava or OpenJDK, maybe you can find some “inspiration” there.

    Good luck.

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

Sidebar

Related Questions

Problem: I have an address field from an Access database which has been converted
The big problem lies in the fact that the code, no matter which number
I'm matching out conditionals from a template if statement. The problem lies with parsing
I have this issue with ComboBox that uses IEnumerable<Brush> as ItemsSource; the problem lies
Problem (simplified to make things clearer): 1. there is one statically-linked static.lib that has
Problem: Given a list of strings, find the substring which, if subtracted from the
Problem I have timestamped data, which I need to search based on the timestamp
I have constant problem with cookies on my Django site which is set up
I have written a simple TCP client and server. The problem lies with the
I've been working on some simple AJAX functions recently, using MooTools. My problem lies

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.