Class KendoDateTimeUtils
- java.lang.Object
-
- com.googlecode.wicket.kendo.ui.utils.KendoDateTimeUtils
-
public class KendoDateTimeUtils extends Object
Utility class for Kendo UI datetime formats- Author:
- Sebastien Briquet - sebfz1
- See Also:
- http://docs.kendoui.com/api/framework/kendo
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
convert(String input)
Converts the input value to handle discrepancies (like localized am/pm)static String
toPattern(String pattern)
Converts a java datetime pattern to a kendo-ui datetime patternstatic String
toString(LocalDate date)
Converts aLocalDate
to a compatible kendo-ui date-string format (without timezone)static String
toString(LocalDateTime date)
Converts aLocalDateTime
to a compatible kendo-ui date-string format (without timezone)static String
toString(Date date)
Converts aDate
to a compatible kendo-ui date-string format (with timezone)
-
-
-
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 aDate
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 aLocalDate
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 aLocalDateTime
to a compatible kendo-ui date-string format (without timezone)- Parameters:
date
- the date- Returns:
- the compatible kendo ui date string
-
-