0

dateparser.parse("03 AUGUST 2018, 00:26 AM IST")

Try parsing the above date with dateparser. I have been using dateparser from 3 months, I choose these module because it supports multi languge. But I have faced something strange today. It could parse anything but not this. I have changed the months, but no luck. Can anyone say, why is this? how to approach to solve the problem? It works only when I remove "AM/PM" from this kind of format.

2
  • Is that the dateparser for Python? Commented Aug 5, 2018 at 7:33
  • yeah, dateparser for python @OleV.V. Commented Sep 20, 2018 at 6:10

1 Answer 1

1

Actually this format is false, you are writing in 24-hour format (from 0 to 23) where there is no AM/PM. If you want add AM/PM so you have to go with the 12hour format ( from 1 to 12, with AM/PM)

Check this table

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, I thought these things can be ignored by default by the parsers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.