[Solved] How to convert this date format “Sun Jul 13 2014 00:30:00 GMT+0530 (India Standard Time)” into a standard format “YYYY-m-d” using php [duplicate]

You could use strftime and strtotime functions like this: strftime(“%Y-%m-%d”, strtotime(“Sun Jul 13 2014 00:30:00 GMT+0530″)) 2 solved How to convert this date format “Sun Jul 13 2014 00:30:00 GMT+0530 (India Standard Time)” into a standard format “YYYY-m-d” using php [duplicate]

[Solved] How to change the format of date in java [duplicate]

Check this out: try { SimpleDateFormat format1 = new SimpleDateFormat(“MMM dd, yyyy”); SimpleDateFormat format2 = new SimpleDateFormat(“yyyy-MM-dd”); String stringDate = “Dec 13, 2013”; Date date = format1.parse(stringDate); System.out.println(format2.format(date)); } catch (ParseException exp) { // Take appropriate action } Output: 2013-12-13 3 solved How to change the format of date in java [duplicate]