Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get date information from json with java
//Cihaza ait lokal zaman dilimini bulalım
Calendar cal = Calendar.getInstance();
TimeZone tz = cal.getTimeZone();
//Parse işlemi
String dateStr = jsonObject.getString("date");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
Date dateObject = sdf.parse(dateStr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment