Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String strcurdate ;
- Date currentDate;
- Calendar cal = Calendar.getInstance();
- SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
- strcurdate = " " + sdf.format(cal.getTime()).toString();
- // System.out.println("Today's date" + strcurdate);
- DateFormat format = new SimpleDateFormat("dd/MM/yyyy");
- try {
- currentDate = format.parse(strcurdate);
- System.out.println("DAte in Match time" + currentDate);
- } catch (ParseException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement