// Current date and time
LocalDate today = LocalDate.now();
LocalTime now = LocalTime.now();
LocalDateTime current = LocalDateTime.now();

// Create specific date
LocalDate date = LocalDate.of(2024, 1, 15);
LocalTime time = LocalTime.of(14, 30);
LocalDateTime dateTime = LocalDateTime.of(2024, 1, 15, 14, 30);

// Parse from string
LocalDate parsed = LocalDate.parse("2024-01-15");
LocalDateTime parsedDateTime = LocalDateTime.parse("2024-01-15T14:30:00");

// Format to string
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
String formatted = dateTime.format(formatter);

// Add/subtract time
LocalDate tomorrow = today.plusDays(1);
LocalDate nextWeek = today.plusWeeks(1);
LocalDate nextMonth = today.plusMonths(1);
LocalDate nextYear = today.plusYears(1);

LocalTime later = now.plusHours(2);
LocalTime earlier = now.minusMinutes(30);

// Calculate difference
long days = ChronoUnit.DAYS.between(today, tomorrow);
Duration duration = Duration.between(now, later);
Period period = Period.between(today, tomorrow);

// Compare dates
boolean isAfter = tomorrow.isAfter(today);
boolean isBefore = today.isBefore(tomorrow);
boolean isEqual = today.equals(today);

// Get specific fields
int year = today.getYear();
Month month = today.getMonth();
int day = today.getDayOfMonth();
DayOfWeek dayOfWeek = today.getDayOfWeek();

// With timezone
ZonedDateTime zoned = ZonedDateTime.now(ZoneId.of("America/New_York"));
Instant instant = zoned.toInstant();

// Convert between zones
ZonedDateTime utc = zoned.withZoneSameInstant(ZoneId.of("UTC"));