I am trying to format date string ex. 2014-11-24T18:30:00.000Z to 2014-11-24 using this code below:
2014-11-24T18:30:00.000Z
2014-11-24
SimpleDateFormat dateFormat = new
You need to give a date as the argument for format not a String. First create a SimpleDateFormat to parse the string to a date then give the date object to the other SimpleDateFormat to format the date.