Oh voices, get out! Get out! Get out! You don’t need to be there telling me what to do and what not to do. Who to do it to etc. You need to go away. Is that too much to ask? I doubt it. But I fear the voices will never go away. They’ll be with me for a long time, and I don’t like that. Do the voices have a purpose in life? I doubt it. I don’t think they have a good purpose with anything. They’re evil voices after all. There isn’t anything good about them! At least I don’t think there is anything good about them. If there were, they wouldn’t be doing all the things now would they? No, I didn’t think so.
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