luca020400

date

Aug 19th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1.             // Date
  2.             SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
  3.             try {
  4.                 Date DateLog = format.parse(mDateDevice);
  5.                 Date DateDevice = format.parse(simplelastupdated[0]);
  6.                 if (DateLog.toString() == DateDevice.toString()) {
  7.                     mChangelog.add("Next Nightly");
  8.                 }
  9.             } catch (java.text.ParseException e) {
  10.                 e.printStackTrace();
  11.             }
Advertisement
Add Comment
Please, Sign In to add comment