Skip to content

Instantly share code, notes, and snippets.

@Budincsevity
Created July 20, 2015 10:16
Show Gist options
  • Save Budincsevity/e1e1deca2da3b4dca3ac to your computer and use it in GitHub Desktop.
Save Budincsevity/e1e1deca2da3b4dca3ac to your computer and use it in GitHub Desktop.
Convert Date to LocalDate
Date input = new Date();
LocalDate date = input.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment