To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
This will replace formatter for date functions. Note this uses a versioned name, to allow evolution. As changes are made with break backwards compatibility, this will be copied to a new version
Properties
Name | Returns | Notes | Example |
---|---|---|---|
parsers | List | ||
defaultDateTimeFormatter | TemporalParser | ||
defaultDateOnlyFormatter | TemporalParser | ||
timezoneId | String | Returns the current timezone to use, which is taken preferentially from: the current user's profile, then the account, and then the default for the server cluster |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
toDate ( dateTime ) | Date | Convert anyting to a Date | |
getDayOfWeek ( o ) | int | Returns the day of the week, 1 being Sunday and 7 being Saturday | |
getDateTime ( o ) | ZonedDateTime | Returns a DateTime, not adjusted for any timezone | |
findTimeZone ( id ) | ZoneId | ||
parseDate ( s ) | ZonedDateTime | ||
formatDateISO8601 ( o ) | String | ||
formatDateISO8601 ( o, timezone, localeId ) | String |