Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am unable to attach snapshots ? not getting reason of attachment failure???
java.util.Calendar calendar = java.util.Calendar.getInstance(java.util.TimeZone.getDefault(),java.util.Locale.ENGLISH);
calendar.add(calendar.MONTH, -1);
java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat("yyyyMM"); //$NON-NLS-1$
dateFormat.format(calendar.getTime());
globalMap.put("key", dateFormat.format(calendar.getTime()));
System.out.println(dateFormat.format(calendar.getTime()));
Can you please tell me what is this code: ((String)globalMap.get("key")) ?? i dint got by "ctrl+ Space"
So if i run the job it should delete only 2 files like
1) 20130727_log.txt
2) 20130728_log.txt
because ( Systemdate - 1 month ) = 20130728 ,
but presently when i Run our job it DELETE following files:
1) 20130727_log.txt
2) 20130728_log.txt
3) 20130729_log.txt
4) 20130730_log.txt
5) 20130731_log.txt WHICH IS WRONG...