Class KendoDateTimeUtils

    • Method Detail

      • convert

        public static String convert​(String input)
        Converts the input value to handle discrepancies (like localized am/pm)
        Parameters:
        input - the input value
        Returns:
        the converted value
      • toPattern

        public static String toPattern​(String pattern)
        Converts a java datetime pattern to a kendo-ui datetime pattern
        Parameters:
        pattern - the java pattern
        Returns:
        the kendo-ui datetime pattern
      • toString

        public static String toString​(Date date)
        Converts a Date to a compatible kendo-ui date-string format (with timezone)
        Parameters:
        date - the date
        Returns:
        the compatible kendo ui date string
      • toString

        public static String toString​(LocalDate date)
        Converts a LocalDate to a compatible kendo-ui date-string format (without timezone)
        Parameters:
        date - the date
        Returns:
        the compatible kendo ui date string
      • toString

        public static String toString​(LocalDateTime date)
        Converts a LocalDateTime to a compatible kendo-ui date-string format (without timezone)
        Parameters:
        date - the date
        Returns:
        the compatible kendo ui date string