Commit dc14ca86 authored by msingh's avatar msingh

Changed by Manish on 18/07/16 for comparison b/w two dates


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102516 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3a9c6a5c
......@@ -243,7 +243,12 @@ public class ShipmentPrc extends ProcessEJB implements ShipmentPrcLocal,Shipment
int month=tempSysDate.getMonth();
int year=tempSysDate.getYear();
Date finalSysDate=new Date(year,month,day); */
int i =new java.util.Date(toDate).compareTo(new java.util.Date(fromDate));
// Changed by Manish on 18/07/16 for comparison b/w two dates [start]
//int i =new java.util.Date(toDate).compareTo(new java.util.Date(fromDate));
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yy");
int i = format.parse(toDate).compareTo(format.parse(fromDate));
// Changed by Manish on 18/07/16 for comparison b/w two dates [end]
// int sysDate=new java.util.Date(toDate).compareTo(finalSysDate);
if((i==-1) )
......
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