Convert ZoneDateTime to String
Hi, sorry for the extremely basic question and bad english.
I need starting from a ZoneDateTime to print a date with the zone’s timezone applied, for example:
ZonedDateTime.now().format(DateTimeFormatter.ofPattern(“yyyy-MM-dd’T’HH
mmss”))
Print for me:
2023-03-12T14
0027
But i live in Italy (GMT+1) and i want to print
2023-03-12T15
0027
I googled the solution but evidently I’m wrong with the terms since I only find things that I don’t need or for Java.
Thanks in advance to anyone who can...