I need to add 8 hours on the hours of “6/27/2024 12:27:00 AM”, so the result should be “6/27/2024 8:27:00 PM” and return it as String.
I tried using regex but is flawed and too complicated, got to add if condition for AM and PM changing. I’m looking for the simplest way to go about this.