public final class NowAndTodayUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Date |
doNowOrToday(String value,
String colType)
Determines value for "NOW" or "TODAY" prefixed value.
|
static boolean |
isNowOrTodayFormat(String value)
Checks if date starts with "NOW" or "TODAY".
|
public static boolean isNowOrTodayFormat(String value)
value - value to testpublic static Date doNowOrToday(String value, String colType) throws DateParseException
value - value to convert to a datecolType - Column type (e.g. "timestamp", "time", "date", or "datetime")DateParseException - if colType is not one of "timestamp", "time", "date", or "datetime"Copyright © 2019 Liquibase.org. All rights reserved.