DateTimeFormatter & Timezones in Java
🟢 Beginner Level | Java Core Syntax
📖 Definition
DateTimeFormatter formats date strings, while ZonedDateTime and ZoneId handle timezone conversions.
âš¡ Code Example
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("dd-MM-yyyy");
String formatted = LocalDate.now().format(fmt);
🧠Navigation
← 02. Instant, Duration & Period | Module Hub | Module Hub →