fluid-api/src/main/java/com/fluidbpm/program/api/vo/ABaseFluidJSONObject.java
@XmlTransient
    public Date getDateFieldValueFromFieldWithName(String fieldNameParam)
    {
        if((fieldNameParam == null || fieldNameParam.trim().isEmpty()) ||
                (this.jsonObject == null || this.jsonObject.isNull(fieldNameParam)))
        {
            return null;
        }

        Object objectAtIndex = this.jsonObject.get(fieldNameParam);

        if(objectAtIndex instanceof Number)
        {
            return this.getLongAsDateFromJson(((Number)objectAtIndex).longValue());
        }
        else if(objectAtIndex instanceof String)
        {
            Date validDate = null;
            for(SimpleDateFormat format : SUPPORTED_FORMATS)
            {
                try
                {
                    validDate = format.parse((String)objectAtIndex);
                    if(validDate != null)
                    {
                        break;
                    }
                }
                catch (ParseException parseExcept)
                {
                    validDate = null;
                }
            }

            return validDate;
        }

        return null;
    }
@XmlTransient
    public Date getDateFieldValueFromFieldWithName(String fieldNameParam)
    {
        if((fieldNameParam == null || fieldNameParam.trim().isEmpty()) ||
                (this.jsonObject == null || this.jsonObject.isNull(fieldNameParam)))
        {
            return null;
        }

        Object objectAtIndex = this.jsonObject.get(fieldNameParam);

        if(objectAtIndex instanceof Number)
        {
            return this.getLongAsDateFromJson(((Number)objectAtIndex).longValue());
        }
        else if(objectAtIndex instanceof String)
        {
            Date validDate = null;
            for(SimpleDateFormat format : SUPPORTED_FORMATS)
            {
                try
                {
                    validDate = format.parse((String)objectAtIndex);
                    if(validDate != null)
                    {
                        break;
                    }
                }
                catch (ParseException parseExcept)
                {
                    validDate = null;
                }
            }

            return validDate;
        }

        return null;
    }
@ XmlTransient public Date getDateFieldValueFromFieldWithName ( String fieldNameParam ) { if ( ( fieldNameParam == null || fieldNameParam . trim ( ) . isEmpty ( ) ) || ( this . jsonObject == null || this . jsonObject . isNull ( fieldNameParam ) ) ) { return null ; } Object objectAtIndex = this . jsonObject . get ( fieldNameParam ) ; if ( objectAtIndex instanceof Number ) { return this . getLongAsDateFromJson ( ( ( Number ) objectAtIndex ) . longValue ( ) ) ; } else if ( objectAtIndex instanceof String ) { Date validDate = null ; for ( SimpleDateFormat format : SUPPORTED_FORMATS ) { try { validDate = format . parse ( ( String ) objectAtIndex ) ; if ( validDate != null ) { break ; } } catch ( ParseException parseExcept ) { validDate = null ; } } return validDate ; } return null ; }
Retrieves the value of field {@code fieldNameParam} as a timestamp.

@param fieldNameParam The name of the JSON field to retrieve.
@return The value of the JSON Object as a {@code java.util.Date}.
Retrieves the value of field { @code fieldNameParam } as a timestamp .