I want to convert the following datetime do milliseconds :
17/07/2015 13:30
For this I have used the following code:
SimpleDateFormat f = new SimpleDateFormat("dd/mm/yyyy hh:mm");
Date d = null;
try {
d = f.parse(date);
} catch (ParseException e) {
}
long milliseconds = d.getTime();
But when this date I add to the calendar in Android it seems that the date is 17 of January not 17 of July.