Guest User

Untitled

a guest
Dec 8th, 2019
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public Date tomorrow()
  2. {
  3. if(checkDate(_day+1,_month,_year)==true)
  4. {
  5. Date dateN = new Date(_day+1,_month,_year);
  6. return dateN;
  7. }
  8. else
  9. if(checkDate(1,_month+1,_year)==true)
  10. {
  11. Date dateN = new Date(1,_month+1,_year);
  12. return dateN;
  13. }
  14. else
  15. if(checkDate(1,1,_year+1)==true)
  16. {
  17. Date dateN = new Date(1,1,_year+1);
  18. return dateN;
  19. }
  20. else
  21. {
  22. Date dateN = new Date(_day+1,_month,_year);
  23. return dateN;
  24. }
  25. }
RAW Paste Data