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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:11:02+00:00 2026-05-26T04:11:02+00:00

I have date formats like this which I want to parse — 02 September

  • 0

I have date formats like this which I want to parse —

02 September 2011 15:57

Friday, September 02, 2011 9:51 AM

Mittwoch, 10. August 2011 16:31

woensdag 10 augustus 2011 14:09

Wed, 27 Jul 2011 20:23:18 -0000 (UTC)

Can we have any parser which can do this also considering the language difference?

Regards
Neha

  • 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-26T04:11:02+00:00Added an answer on May 26, 2026 at 4:11 am

    Defining a universal date parser is not possible due to ambiguities in date formats. For example:

    12/11/2011
    

    … implies November 12th 2011 using the UK date convention but December 11th 2011 using the US convention.

    You could take an approach where you define a List of SimpleDateFormat classes, each specifying a date pattern and attempt to parse the dates in that order. However, I wouldn’t personally recommend it as it will result in unintuitive behaviour for any end users (assuming there are any) and / or difficult-to-track-down data related bugs. Far better to either define an explicit date format or rely on the system locale settings (depending on your problem domain).

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

Sidebar

Related Questions

Hey, I have a report parameter which looks like this: 01.01.2009 00:00:00 Its a
I have this date and time format: 2010-05-19 07:53:30 and would like to change
I want to sort dates which look like this: 26 Jul This is my
Hi I have a user input form which takes date in 2011-05-12 format. I
I have a google spreadsheet in which I want a date with only the
I have a date in this formate YYYY/MM/DD. Now I want to get the
I have a date and I would like to format the date like that:
So I have function that formats a date to coerce to given enum DateType{CURRENT,
I have a Date format: 2009-08-10T16:03:03Z that I want to convert to: @MMM dd,
I have a method which parses a string in to a date, but i

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.