# Class CalendarDateTime

java.lang.Object
com.codename1.calendar.CalendarDateTime

public final class CalendarDateTime extends Object
Either a zoned date-time or an all-day date.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CalendarDateTime`
  `allDay(LocalDate date)`
  `LocalDate`
  `getDate()`
  `ZonedDateTime`
  `getDateTime()`
  `static CalendarDateTime`
  `instant(Instant instant, ZoneId zone)`
  `boolean`
  `isAllDay()`
  `static CalendarDateTime`
  `timed(ZonedDateTime dateTime)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### timed

    public static CalendarDateTime timed(ZonedDateTime dateTime)

  - ### instant

    public static CalendarDateTime instant(Instant instant, ZoneId zone)

  - ### allDay

    public static CalendarDateTime allDay(LocalDate date)

  - ### isAllDay

    public boolean isAllDay()

  - ### getDateTime

    public ZonedDateTime getDateTime()

  - ### getDate

    public LocalDate getDate()