Skip to content

Instantly share code, notes, and snippets.

@jpwco
Created January 14, 2022 19:44
Show Gist options
  • Save jpwco/e34e883a7022cf393b3e0824a70354a1 to your computer and use it in GitHub Desktop.
Save jpwco/e34e883a7022cf393b3e0824a70354a1 to your computer and use it in GitHub Desktop.
if(userEndDate.getTime() != null
&& userEndDate.getTime() > today.getTime()
&& endDateFromRequest != null ? endDateFromRequest.getTime() !== userEndDate.getTime() : true){
//some code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment