What on earth is going on here? I don’t have any idea of what to think or say. Life is getting in the way to be honest, but I wish it wasn’t. I wish it was being kinder to me. It needs to be kinder to me. Somehow I’m failing at life. I just don’t know what to do about any of it.
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