-4

I am trying to parse by date:

final SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm");

This is the error I am getting:

java.text.ParseException: Unparseable date: "2013-04-28 04"

Cœur
  • 37,241
  • 25
  • 195
  • 267
ashu
  • 7

1 Answers1

1

The date "2013-04-28 04" is in the form yyyy-MM-dd HH

which does not match the format dd-MMM-yyyy HH:mm

You'd want something like "28-Apr-2013 04:00"

Here is some documentation of SimpleDateFormat and here about ParseException