public class DateUtils extends Object
| Constructor and Description |
|---|
DateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFieldName(int field)
Returns the name of the specified calendar field.
|
static Date |
internalToDate(int v)
Converts the internal representation of a SQL DATE (int) to the Java type (
Date). |
static int |
parseNumericValueWithRange(String fieldName,
String strVal,
int minValue,
int maxValue) |
public static int parseNumericValueWithRange(String fieldName, String strVal, int minValue, int maxValue) throws IllegalArgumentException
IllegalArgumentExceptionpublic static String getFieldName(int field)
field - the calendar fieldIndexOutOfBoundsException - if field is negative, equal to or greater then
FIELD_COUNT.Copyright © 2023 The Apache Software Foundation. All rights reserved.