Created
July 16, 2019 17:40
-
-
Save jerhon/4f51276ac40e5d4a223d87f7942f2f74 to your computer and use it in GitHub Desktop.
Java Basics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.honlsoft.utils; | |
public class DateTimeUtils { | |
public static LocalDate parseDate(String date) { | |
var datePattern = DateTimeFormatter.ofPattern("yyyyMMdd"); | |
return LocalDate.parse(date, datePattern); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a Gist intended to include Javaisms that I need to use commonly.