import moment from 'moment';
export const  formatDDMMAAAA = function(value){
    return value.substr(0, 10).split('-').reverse().join('/')
          }

export const formatDateTimeDDMMAAAA = (value) =>{

    let mDate = new moment(value, "YYYY-MM-DD HH:mm:ss");



    return mDate.format('DD/MM/YYYY HH:mm:ss');
}