Life Is Weird Kyle Eggleston Life is just kind of weird. Let’s face it. If we didn’t know or understand ourselves, we would find that we weren’t all that weird just life is the weird part. However if life wasn’t weird it wouldn’t be that kind of life now would it? No, I didn’t think so. But that’s life for you. You never know where it will take you. It might take you left, it could take you right. You just never know where you’ll go.
For some reason my installation of Java wouldn't let me use SimpleDateFormat to format my dates. So I had to google a different way to do this and found the following works as well. The Date class has a bunch of issues with it to begin with, so this is much cleaner and better as well.
LocalDateTime ldt = LocalDateTime.now();
DateTimeFormatter df = DateTimeFormatter.ofPattern("MM/dd/yyyy", Locale.ENGLISH);
String formattedString = df.format(ldt);
Comments
Post a Comment