Java tutorial
//package com.java2s; public class Main { /** * Times": "(1425956629171)" to timeInMillis * @param string * @return */ public static long parseToTimeInMillis(String string) { int start = string.indexOf("(") + 1; int end = string.indexOf(")"); String timeString = string.substring(start, end); long timeMillis = Long.parseLong(timeString); return timeMillis; } }