Skip to content

Instantly share code, notes, and snippets.

@jerhon
Created July 16, 2019 17:40
Show Gist options
  • Save jerhon/4f51276ac40e5d4a223d87f7942f2f74 to your computer and use it in GitHub Desktop.
Save jerhon/4f51276ac40e5d4a223d87f7942f2f74 to your computer and use it in GitHub Desktop.
Java Basics
package com.honlsoft.utils;
public class DateTimeUtils {
public static LocalDate parseDate(String date) {
var datePattern = DateTimeFormatter.ofPattern("yyyyMMdd");
return LocalDate.parse(date, datePattern);
}
}
@jerhon
Copy link
Author

jerhon commented Jul 16, 2019

This is a Gist intended to include Javaisms that I need to use commonly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment