Package io.deephaven.web.client.api
Class LocalDateWrapper
java.lang.Object
io.deephaven.web.client.api.LocalDateWrapper
Wrap LocalDate values for use in JS. Provides text formatting for display and access to the underlying value.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LocalDateWrapper
public LocalDateWrapper(int year, int monthValue, int dayOfMonth)
-
-
Method Details
-
valueOf
Returns the string representation of this date.Provided to match JavaScript's
valueOfconvention.- 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
Returns the date formatted asYYYY-MM-DD.
-