Deprecated API
Contents
-
Deprecated MethodsMethodDescriptionBehaviour depends on configuration, and an unparseable input throws. Parse to a
LocalDateand useDateUtil.addDaysToDate(LocalDate, Integer)instead.Behaviour depends on configuration, and an unparseable input throws. Parse to aLocalDateand useDateUtil.addMonthsToDate(LocalDate, Integer)instead.Behaviour depends on configuration, and an unparseable input throws. Parse to aLocalDateand useDateUtil.addYearsToDate(LocalDate, Integer)instead.Parse toLocalDatevalues and useDateUtil.afterDate(LocalDate, LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.afterDate(LocalDate, LocalDate)instead.Parse toLocalDatevalues and useDateUtil.afterOrEqualsDate(LocalDate, LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.afterOrEqualsDate(LocalDate, LocalDate)instead.Parse to aLocalDatewithDateUtil.getDateFromString(String, String)and useDateUtil.afterOrEqualsToday(LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.afterOrEqualsToday(LocalDate)instead.Parse to aLocalDatewithDateUtil.getDateFromString(String, String)and useDateUtil.afterToday(LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.afterToday(LocalDate)instead.Parse toLocalDatevalues and useDateUtil.beforeDate(LocalDate, LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.beforeDate(LocalDate, LocalDate)instead.Parse toLocalDatevalues and useDateUtil.beforeOrEqualsDate(LocalDate, LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.beforeOrEqualsDate(LocalDate, LocalDate)instead.Parse to aLocalDatewithDateUtil.getDateFromString(String, String)and useDateUtil.beforeOrEqualsToday(LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.beforeOrEqualsToday(LocalDate)instead.Parse to aLocalDatewithDateUtil.getDateFromString(String, String)and useDateUtil.beforeToday(LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.beforeToday(LocalDate)instead.Parse toLocalDatevalues and useDateUtil.compareLocalDate(LocalDate, LocalDate, String)instead.Behaviour depends on configuration and the flag is misnamed. Parse toLocalDatevalues and useDateUtil.getDaysBetween(LocalDate, LocalDate, boolean)instead.Use#f().instant.now(), which is the current expression API.Parse to aLocalDatewithDateUtil.getDateFromString(String, String)and useDateUtil.isToday(LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.isToday(LocalDate)instead.Returns a locale-dependent string. UseDateUtil.instantNow()and format explicitly withDateUtil.getStringFromInstant(Instant, String), orDateUtil.getIsoDateTimeString(Object)for anything machine-readable.Parse toLocalDatevalues and useDateUtil.sameDate(LocalDate, LocalDate)instead, so an unparseable value fails rather than comparing as equal.Works on formatted strings using the application-configured date pattern, so its behaviour changes with configuration and a mismatched string compares as equal rather than failing. Parse to aLocalDatewithDateUtil.getLocalDate(Object)and useDateUtil.sameDate(LocalDate, LocalDate)instead.Returns a formatted string whose shape depends on configuration. UseDateUtil.todayDate()for aLocalDate, or#f().date.today().Use#f().date.today(), which is the current expression API for dates.This method is deprecated. Use SpEL matches to achieve the same functionality.