0

How to convert "MM-dd-yyyy hh:mm" String date format to GMT format?

view story
linux-howto

http://stackoverflow.com – My Date format is like as "MM-dd-yyyy hh:mm" its not current date ,I have to send this date to server but before send it need to change this date to GMT format but when I change by following code: private String[] DateConvertor(String datevalue) { String date_value[] = null; String strGMTFormat = null; SimpleDateFormat objFormat,objFormat1; Calendar objCalendar; Date objdate1,objdate2; if(!datevalue.equals("")) { try { //Specify your format objForm (HowTos)