Commit 105becc1 authored by mchauhan's avatar mchauhan

Called getActualMaximum method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@215157 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b61ba0a5
...@@ -7575,7 +7575,8 @@ public class DistCommon { ...@@ -7575,7 +7575,8 @@ public class DistCommon {
expDate = utilMethods.AddMonths(date, iShelfLife); expDate = utilMethods.AddMonths(date, iShelfLife);
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();
cal.setTime(expDate); cal.setTime(expDate);
lastDay = cal.getMaximum(Calendar.DAY_OF_MONTH); /*lastDay = cal.getMaximum(Calendar.DAY_OF_MONTH);*/ //Commented by Mukesh Chauhan on 15/01/20
lastDay = cal.getActualMaximum(Calendar.DAY_OF_MONTH);//Added by Mukesh Chauhan on 15/01/20
cal.set(Calendar.DAY_OF_MONTH, lastDay); cal.set(Calendar.DAY_OF_MONTH, lastDay);
java.util.Date newDate = cal.getTime(); java.util.Date newDate = cal.getTime();
SimpleDateFormat sdt = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat sdt = new SimpleDateFormat("yyyy-MM-dd");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment