I'm using the LocalDateTime.now() method to get the current time and date for the filenames for file reports, and colons are not allowed in filename.
How can I replace every colon (":") with a period (".") in the String so it's acceptable to set as a filename?