Class LocalDateWrapper

java.lang.Object
io.deephaven.web.client.api.LocalDateWrapper

@TsInterface @TsName(namespace="dh") public class LocalDateWrapper extends Object
Wrap LocalDate values for use in JS. Provides text formatting for display and access to the underlying value.
  • Constructor Details

    • LocalDateWrapper

      public LocalDateWrapper(int year, int monthValue, int dayOfMonth)
  • Method Details

    • valueOf

      @JsMethod public String valueOf()
      Returns the string representation of this date.

      Provided to match JavaScript's valueOf convention.

      Returns:
      The string form of this date.
    • getYear

      @JsMethod public int getYear()
      The year.
    • getMonthValue

      @JsMethod public int getMonthValue()
      The month of the year, from 1 to 12.
    • getDayOfMonth

      @JsMethod public int getDayOfMonth()
      The day of the month, from 1 to 31.
    • toString

      @JsMethod public String toString()
      Returns the date formatted as YYYY-MM-DD.
      Overrides:
      toString in class Object