Guest User

Untitled

a guest
Jul 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. SimpleDateFormat formatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzzz yyyy");
  2. try {String temp = value2[i].trim();
  3. expiry = formatter.parse(temp);
  4. // cookie.setExpiryDate(formatter
  5. // .parse(value2[i].trim()));
  6. } catch (Exception e) {
  7. e.printStackTrace();
  8. }
  9.  
  10. SimpleDateFormat formatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzzz yyyy");
  11. try {
  12. String temp = "Fri Jul 30 16:19:36 GMT+02:00 2021";
  13. Date expiry = formatter.parse(temp);
  14. } catch (Exception e) {
  15. e.printStackTrace();
  16. }
Add Comment
Please, Sign In to add comment