src/components/meta/Property/Type.js
function(value, params, property) {
            if (_.isNumber(value) && !isNaN(value)) {
                value = new Date(value);
            }
            else if (_.isString(value)) {
                value = new Date(Date.parse(value));
            }

            if (!(value instanceof Date)) {
                throw new Error('Value of property "' + property + '" must have datetime type!');
            }

            return value;
        }
function(value, params, property) {
            if (_.isNumber(value) && !isNaN(value)) {
                value = new Date(value);
            }
            else if (_.isString(value)) {
                value = new Date(Date.parse(value));
            }

            if (!(value instanceof Date)) {
                throw new Error('Value of property "' + property + '" must have datetime type!');
            }

            return value;
        }
function ( value , params , property ) { if ( _ . isNumber ( value ) && ! isNaN ( value ) ) { value = new Date ( value ) ; } else if ( _ . isString ( value ) ) { value = new Date ( Date . parse ( value ) ) ; } if ( ! ( value instanceof Date ) ) { throw new Error ( 'Value of property "' + property + '" must have datetime type!' ) ; } return value ; }
Datetime property type
Converts value to Date

@param {*}      value    Property value
@param {object} params   Property parameters
@param {string} property Property name

@throws {Error} if value could not be successfully converted to Date

@returns {Date} Processed property value

@this {metaProcessor}
Datetime property type Converts value to Date