Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int CompareCals (Date dmovie, Date dnow7)
- {
- int eligible;
- DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
- String stringdnow = formatter.format(new Date());
- Date dnow;
- dnow=StringtoDate(stringdnow);
- if(dnow7.compareTo(dmovie)>=0 && dnow.compareTo(dmovie)<=0)
- eligible=1;
- else
- eligible=0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement