I need to convert a Java Date object to a string that is the same format as JavaScript Dates when they are converted to a string. On our server we have JavaScript dates that
SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd yyyy '00:00:00' zZ"); Date date = arrayOfDates[i]; String dateStr = format.format(date);