Why must life be this way? I don’t understand it. If we lived in a utopia, things might be better; but I’m not sure about that. I wish there was some kind of something to overcome this feeling of inadequacy. I doubt I will ever fully figure it out. If I had the ability, I would do it in a second. But I don’t seem to have that ability at the moment. Maybe one day I will be able to figure it all out.
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