agave-tags/tags-api/src/main/java/org/iplantc/service/tags/utils/BindingUtils.java
/**
     * Returns the Date parsed from the variable's value. Throws an
     * {@link IllegalArgumentException} if no Date can be parsed.
     * 
     * @param value
     *            The variable's value.
     */
Returns the Date parsed from the variable's value. Throws an
IllegalArgumentException if no Date can be parsed.

@param value
The variable's value.
Returns the Date parsed from the variable ' s value . Throws an IllegalArgumentException if no Date can be parsed . @param value The variable ' s value .
public static Date toDate(String value) {
        if (StringUtils.isNullOrEmpty(value)) {
            return null;
        }
        try {
            return new Date(Long.parseLong(value));
        } catch (NumberFormatException e) {
            throw new IllegalArgumentException("Invalid epoch timestamp ["
                    + value + "]");
        }
    }
public static Date toDate ( String value ) { if ( StringUtils . isNullOrEmpty ( value ) ) { return null ; } try { return new Date ( Long . parseLong ( value ) ) ; } catch ( NumberFormatException e ) { throw new IllegalArgumentException ( "Invalid epoch timestamp [" + value + "]" ) ; } }
Returns the Date parsed from the variable's value.
Returns the Date parsed from the variable ' s value .