Today is not going well, My phone isn’t working. I hate it. I need to get a new phone, but we have no funds for a new phone. Who knows what’s going on anymore. I hate it. I wish there was something we could do about it, but there isn’t. I mean yeah I need to get a new phone. But the money thing is making it difficult. I wish I could just snap my fingers and make my old phone work fine and dandy again, but I doubt life works that way. No, I know life doesn’t work that way.
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