src/components/DatePicker/Component.js
// parse value to valueSettings of PrivateSettings
parse value to valueSettings of PrivateSettings
parse value to valueSettings of PrivateSettings
parseValueDate(){
        let mask = this.getMask();
        let value = this.getValueElement();
        let day = value.substring(mask.indexOf('DD'),mask.indexOf('DD')+2);
        let month = value.substring(mask.indexOf('MM'),mask.indexOf('MM')+2);
        let year = value.substring(mask.indexOf('YYYY'),mask.indexOf('YYYY')+4);
        let hour = value.substring(mask.indexOf('hh'),mask.indexOf('hh')+2);
        let minute = value.substring(mask.indexOf('mm'),mask.indexOf('mm')+2);
        return {
            day:day,
            month:month,
            year:year,
            hour:hour,
            minute:minute
        }
    }
parseValueDate ( ) { let mask = this . getMask ( ) ; let value = this . getValueElement ( ) ; let day = value . substring ( mask . indexOf ( 'DD' ) , mask . indexOf ( 'DD' ) + 2 ) ; let month = value . substring ( mask . indexOf ( 'MM' ) , mask . indexOf ( 'MM' ) + 2 ) ; let year = value . substring ( mask . indexOf ( 'YYYY' ) , mask . indexOf ( 'YYYY' ) + 4 ) ; let hour = value . substring ( mask . indexOf ( 'hh' ) , mask . indexOf ( 'hh' ) + 2 ) ; let minute = value . substring ( mask . indexOf ( 'mm' ) , mask . indexOf ( 'mm' ) + 2 ) ; return { day : day , month : month , year : year , hour : hour , minute : minute } }
parse value to valueSettings of PrivateSettings
parse value to valueSettings of PrivateSettings