I feel like a screw up. Is that good enough to say? I don’t know. Well it’s not good to say that at all I suppose. But life doesn’t feel like it used to. I don’t have a clue why that is. It just feels like blah. Can that be a good answer for everything? Yeah that’s what I was thinking.
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