List of utility methods to do Parse Long
long | parseLong(final String s, final String fmt) parse Long SimpleDateFormat sdf = new SimpleDateFormat(fmt); try { Date t = sdf.parse(s); return t == null ? 0L : t.getTime(); } catch (ParseException e) { return 0L; |
long | parseLong(String d) parse Long DecimalFormat format = new DecimalFormat("#.##"); return format.parse(d.toUpperCase().replace("+", "")).longValue(); |
String | parseLongtoTime(long date) parse Longto Time return dateFormat2.format(new Date(date)); |