Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SimpleDateFormat formatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzzz yyyy");
- try {String temp = value2[i].trim();
- expiry = formatter.parse(temp);
- // cookie.setExpiryDate(formatter
- // .parse(value2[i].trim()));
- } catch (Exception e) {
- e.printStackTrace();
- }
- SimpleDateFormat formatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzzz yyyy");
- try {
- String temp = "Fri Jul 30 16:19:36 GMT+02:00 2021";
- Date expiry = formatter.parse(temp);
- } catch (Exception e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment