Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Date bigInteger2date(BigInteger bigInteger) throws IllegalStateException {
- final String dateStr = bigInteger.toString();
- DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmm");
- try {
- return dateFormat.parse(dateStr);
- } catch (ParseException e) {
- throw new IllegalStateException("ParseException");
- }
- }
- 1563876178942
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement