I’d like to think life would come about and make more sense than it does at the moment, but I doubt that will ever happen. Life comes and goes as it pleases and I have no idea why it does what it does. It would be nice for life to make sense. Depression and all comes about because well I don’t know why it comes about, it just does and here I am trying to over do or overcome it or something. I don’t quite understand why this life has to be the way it is.
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